Skip to content
Snippets Groups Projects
Commit 9997fffd authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

COMP: boost optional components are set only with testing

parent 0ab7ed25
Branches
Tags
No related merge requests found
......@@ -10,12 +10,10 @@ find_package ( Boost
# unit_test_framework component is used only in GdalAdapters module
if (BUILD_TESTING)
set(OTB_Boost_OPTIONAL_COMPONENTS unit_test_framework)
message(STATUS "Looking for optional Boost components : ${OTB_Boost_OPTIONAL_COMPONENTS}")
find_package ( Boost
QUIET
1.35.0
COMPONENTS ${OTB_Boost_OPTIONAL_COMPONENTS}
)
endif()
#Quiet find package to avoid message "Could not find boost" because unit_testing_framework is not installed
message(STATUS "Looking for optional Boost components : ${OTB_Boost_OPTIONAL_COMPONENTS}")
find_package ( Boost
QUIET
1.35.0
COMPONENTS ${OTB_Boost_OPTIONAL_COMPONENTS}
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment