Move Boost::crc and Boost::program_options dependencies in cmake from library to unit and robustness tests (#1437)

This commit is contained in:
Jeremy W. Murphy
2025-10-27 04:13:48 +09:00
committed by GitHub
parent 8aaf504091
commit a946fc8e3e
3 changed files with 12 additions and 2 deletions

View File

@@ -24,7 +24,6 @@ target_link_libraries(boost_geometry
Boost::concept_check Boost::concept_check
Boost::config Boost::config
Boost::core Boost::core
Boost::crc
Boost::function_types Boost::function_types
Boost::graph Boost::graph
Boost::iterator Boost::iterator
@@ -34,7 +33,6 @@ target_link_libraries(boost_geometry
Boost::mpl Boost::mpl
Boost::multiprecision Boost::multiprecision
Boost::numeric_conversion Boost::numeric_conversion
Boost::program_options
Boost::qvm Boost::qvm
Boost::range Boost::range
Boost::rational Boost::rational

View File

@@ -31,6 +31,12 @@ function(boost_geometry_add_unit_test prefix item)
PRIVATE PRIVATE
Boost::included_unit_test_framework) Boost::included_unit_test_framework)
# At least one unit test uses the crc library (but the Geometry library does not).
target_link_libraries(${unit_test_name}
PRIVATE
Boost::crc
Boost::program_options)
# Include the main Geometry test folder and the current folder # Include the main Geometry test folder and the current folder
target_include_directories(${unit_test_name} target_include_directories(${unit_test_name}
PRIVATE PRIVATE

View File

@@ -15,6 +15,12 @@ function(boost_geometry_add_robustness_test item)
PRIVATE PRIVATE
Boost::geometry) Boost::geometry)
# Link to additional libraries required for testing.
target_link_libraries(${robustness_test_name}
PRIVATE
Boost::crc
Boost::program_options)
# Include the main Geometry test folder and the current folder, # Include the main Geometry test folder and the current folder,
# and the robustness test folder # and the robustness test folder
target_include_directories(${robustness_test_name} target_include_directories(${robustness_test_name}