Skip to content

Commit a946fc8

Browse files
Move Boost::crc and Boost::program_options dependencies in cmake from library to unit and robustness tests (#1437)
1 parent 8aaf504 commit a946fc8

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ target_link_libraries(boost_geometry
2424
Boost::concept_check
2525
Boost::config
2626
Boost::core
27-
Boost::crc
2827
Boost::function_types
2928
Boost::graph
3029
Boost::iterator
@@ -34,7 +33,6 @@ target_link_libraries(boost_geometry
3433
Boost::mpl
3534
Boost::multiprecision
3635
Boost::numeric_conversion
37-
Boost::program_options
3836
Boost::qvm
3937
Boost::range
4038
Boost::rational

test/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ function(boost_geometry_add_unit_test prefix item)
3131
PRIVATE
3232
Boost::included_unit_test_framework)
3333

34+
# At least one unit test uses the crc library (but the Geometry library does not).
35+
target_link_libraries(${unit_test_name}
36+
PRIVATE
37+
Boost::crc
38+
Boost::program_options)
39+
3440
# Include the main Geometry test folder and the current folder
3541
target_include_directories(${unit_test_name}
3642
PRIVATE

test/robustness/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ function(boost_geometry_add_robustness_test item)
1515
PRIVATE
1616
Boost::geometry)
1717

18+
# Link to additional libraries required for testing.
19+
target_link_libraries(${robustness_test_name}
20+
PRIVATE
21+
Boost::crc
22+
Boost::program_options)
23+
1824
# Include the main Geometry test folder and the current folder,
1925
# and the robustness test folder
2026
target_include_directories(${robustness_test_name}

0 commit comments

Comments
 (0)