Commit a789eba0 authored by Rashad Kanavath's avatar Rashad Kanavath
Browse files

COMP: fix find_boost and find_boost unit_test_framework

parent c704a9a8
# Optional components find_package (Boost 1.35.0 REQUIRED)
if (BUILD_TESTING)
set(OTB_Boost_COMPONENTS unit_test_framework)
endif()
message(STATUS "Looking for boost components: ${OTB_Boost_COMPONENTS}") if (BUILD_TESTING)
find_package ( Boost find_package (Boost 1.35.0 QUIET
1.35.0 COMPONENTS unit_test_framework)
COMPONENTS ${OTB_Boost_COMPONENTS} if (NOT Boost_UNIT_TEST_FRAMEWORK_FOUND)
REQUIRED 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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment