Skip to content

Commit d6be8eb

Browse files
author
Roberto Di Remigio
committed
Make sure libs depending on Boost explicitly depend on the custom_boost target.
1 parent 7766593 commit d6be8eb

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

src/cavity/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ if(DEVELOPMENT_CODE)
3737
else()
3838
add_dependencies(cavity pedra)
3939
endif()
40+
if(BUILD_CUSTOM_BOOST)
41+
add_dependencies(cavity custom_boost)
42+
endif()
4043
install(TARGETS cavity ARCHIVE DESTINATION lib)
4144

4245
# Sets install directory for all the headers in the list

src/green/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ write_to_cloc_list("${to_count}")
2626
add_library(green STATIC ${sources_list})
2727
set(libs_to_merge green ${libs_to_merge} PARENT_SCOPE)
2828
add_dependencies(green metal libtaylor)
29+
if(BUILD_CUSTOM_BOOST)
30+
add_dependencies(green custom_boost)
31+
endif()
2932
install(TARGETS green ARCHIVE DESTINATION lib)
3033

3134
# Sets install directory for all the headers in the list

src/interface/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ write_to_cloc_list("${to_count}")
2424
add_library(interface STATIC ${sources_list})
2525
set(libs_to_merge interface ${libs_to_merge} PARENT_SCOPE)
2626
add_dependencies(interface utils solver)
27+
if(BUILD_CUSTOM_BOOST)
28+
add_dependencies(interface custom_boost)
29+
endif()
2730
install(TARGETS interface ARCHIVE DESTINATION lib)
2831

2932
# Sets install directory for all the headers in the list

src/utils/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ write_to_cloc_list("${to_count}")
2626
add_library(utils STATIC ${sources_list})
2727
set(libs_to_merge utils ${libs_to_merge} PARENT_SCOPE)
2828
add_dependencies(utils libgetkw)
29+
if(BUILD_CUSTOM_BOOST)
30+
add_dependencies(utils custom_boost)
31+
endif()
2932
install(TARGETS utils ARCHIVE DESTINATION lib)
3033

3134
# Sets install directory for all the headers in the list

0 commit comments

Comments
 (0)