From d4a7bcd8e4e54047574e806bf8c802540b59f620 Mon Sep 17 00:00:00 2001 From: Kristian Flikka Date: Tue, 11 Mar 2014 18:21:52 +0100 Subject: [PATCH] =?UTF-8?q?Only=20look=20for=20BOOST=C2=B4s=20unit=20test?= =?UTF-8?q?=20framework=20module=20if=20not=20already=20found.=20Sync=20ve?= =?UTF-8?q?rsion=20with=20rest=20of=20system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmake/Modules/UseDynamicBoost.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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