Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cbmroot
Manage
Activity
Members
Labels
Plan
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Computing
cbmroot
Commits
f4640c55
Commit
f4640c55
authored
1 year ago
by
Felix Weiglhofer
Committed by
Florian Uhlig
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
external: Use sub-Make for external projects.
parent
470c94e5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1365
external: Use sub-Make for external projects.
Pipeline
#24660
passed
1 year ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
external/InstallFlesnet.cmake
+10
-4
10 additions, 4 deletions
external/InstallFlesnet.cmake
external/InstallYamlCpp.cmake
+7
-1
7 additions, 1 deletion
external/InstallYamlCpp.cmake
with
17 additions
and
5 deletions
external/InstallFlesnet.cmake
+
10
−
4
View file @
f4640c55
...
...
@@ -3,7 +3,7 @@
# The included libraries provide the interface to the experiment data in timeslices
# both online and in timeslice archive (.tsa) files.
set
(
FLESNET_VERSION
0529b038b2c2c8d9b82580e0d080a6abc2ef199f
)
# 2023-0
7
-1
8
set
(
FLESNET_VERSION
e553a5fbd4d1ccc2c55ea11632c38f24516b8461
)
# 2023-
1
0-1
2
set
(
FLESNET_SRC_URL
"https://github.com/cbm-fles/flesnet"
)
...
...
@@ -31,6 +31,12 @@ if(APPLE)
)
endif
()
if
(
"
${
CMAKE_GENERATOR
}
"
MATCHES
"Make"
)
set
(
FLESNET_BUILD_COMMAND
"$(MAKE)"
)
else
()
set
(
FLESNET_BUILD_COMMAND
"
${
CMAKE_COMMAND
}
--build . --target"
)
endif
()
ExternalProject_Add
(
flesnet
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/flesnet
...
...
@@ -43,7 +49,7 @@ ExternalProject_Add(
${
CMAKE_CURRENT_SOURCE_DIR
}
/flesnet
BUILD_IN_SOURCE 0
LOG_DOWNLOAD 1 LOG_CONFIGURE 1 LOG_BUILD 1 LOG_INSTALL 1
BUILD_COMMAND
${
CMAKE_COMMAND
}
--build . -j 1 --target
logging monitoring fles_ipc
BUILD_COMMAND
${
FLESNET_BUILD_COMMAND
}
logging monitoring fles_ipc
BUILD_BYPRODUCTS
${
FLESNET_DESTDIR
}
/src/flesnet-build/lib/fles_ipc/
${
CMAKE_STATIC_LIBRARY_PREFIX
}
fles_ipc
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
INSTALL_COMMAND
""
)
...
...
@@ -93,7 +99,6 @@ endif()
list
(
APPEND dir_to_link
${
FLESNET_DESTDIR
}
/src/flesnet-build/lib/logging/
${
CMAKE_STATIC_LIBRARY_PREFIX
}
logging
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
${
FLESNET_DESTDIR
}
/src/flesnet-build/lib/monitoring/
${
CMAKE_STATIC_LIBRARY_PREFIX
}
monitoring
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
${
FLESNET_DESTDIR
}
/src/flesnet-build/_deps/fmtlib-build/
${
CMAKE_STATIC_LIBRARY_PREFIX
}
fmt
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
)
list
(
APPEND dir_to_link
${
Boost_LOG_LIBRARY
}
...
...
@@ -102,7 +107,8 @@ list(APPEND dir_to_link
${
Boost_SERIALIZATION_LIBRARY
}
${
Boost_ASIO_LIBRARY
}
${
Boost_BEAST_LIBRARY
}
)
fmt::fmt
)
if
(
NOT APPLE
)
list
(
APPEND dir_to_link
${
Boost_THREAD_LIBRARY
}
-lrt
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
external/InstallYamlCpp.cmake
+
7
−
1
View file @
f4640c55
...
...
@@ -17,6 +17,12 @@ If(ProjectUpdated)
Message
(
"yaml-cpp source directory was changed so build directory was deleted"
)
EndIf
()
if
(
"
${
CMAKE_GENERATOR
}
"
MATCHES
"Make"
)
set
(
YAMLCPP_BUILD_COMMAND
"$(MAKE)"
)
else
()
set
(
YAMLCPP_BUILD_COMMAND
"
${
CMAKE_COMMAND
}
--build . --target"
)
endif
()
ExternalProject_Add
(
yaml-cpp
SOURCE_DIR
${
CMAKE_CURRENT_SOURCE_DIR
}
/yaml-cpp
...
...
@@ -28,7 +34,7 @@ ExternalProject_Add(
-DYAML_CPP_BUILD_TESTS=OFF
-DYAML_BUILD_SHARED_LIBS=OFF
-DCMAKE_POSITION_INDEPENDENT_CODE=ON
BUILD_COMMAND
${
CMAKE_COMMAND
}
--build . --target yaml-cpp --parallel 1
BUILD_COMMAND
${
YAMLCPP_BUILD_COMMAND
}
yaml-cpp
BUILD_BYPRODUCTS
${
PROJECT_BINARY_DIR
}
/external/yaml-cpp-prefix/src/yaml-cpp-build/
${
CMAKE_STATIC_LIBRARY_PREFIX
}
yaml-cpp
${
CMAKE_STATIC_LIBRARY_SUFFIX
}
INSTALL_COMMAND
""
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment