From 53656841b5e6a705e3b5c4011b5778b8513ad20f 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 590d23a1..dbfb937c 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