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

COMP: fix find_boost and find_boost unit_test_framework

parent c704a9a8
No related branches found
No related tags found
No related merge requests found
# Optional components
if (BUILD_TESTING)
set(OTB_Boost_COMPONENTS unit_test_framework)
endif()
find_package (Boost 1.35.0 REQUIRED)
message(STATUS "Looking for boost components: ${OTB_Boost_COMPONENTS}")
find_package ( Boost
1.35.0
COMPONENTS ${OTB_Boost_COMPONENTS}
REQUIRED
)
if (BUILD_TESTING)
find_package (Boost 1.35.0 QUIET
COMPONENTS unit_test_framework)
if (NOT Boost_UNIT_TEST_FRAMEWORK_FOUND)
message(STATUS "Boost unit_test_framework not found. Hence otbOGRTests will be skipped")
else()
message(STATUS "Found Boost components: ${OTB_Boost_COMPONENTS}")
endif()
endif() #BUILD_TESTING
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment