diff --git a/cmake/Modules/UseDynamicBoost.cmake b/cmake/Modules/UseDynamicBoost.cmake index 590d23a12..dbfb937ce 100644 --- a/cmake/Modules/UseDynamicBoost.cmake +++ b/cmake/Modules/UseDynamicBoost.cmake @@ -1,5 +1,6 @@ -# be sure that this component is searched for -find_package (Boost COMPONENTS unit_test_framework QUIET) +if (NOT ${Boost_UNIT_TEST_FRAMEWORK_FOUND}) + find_package (Boost 1.44.0 COMPONENTS unit_test_framework QUIET) +endif () if (${Boost_UNIT_TEST_FRAMEWORK_FOUND}) # setup to do a test compile