From: Uwe Hermann Date: Sat, 13 Oct 2012 13:55:32 +0000 (+0200) Subject: Only check for libboost-test if tests are enabled. X-Git-Tag: pulseview-0.1.0~254 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=f617d9ace9f2cea2c0cba4c1337575cd6f7d1cf8;p=pulseview.git Only check for libboost-test if tests are enabled. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 9510a700..3b41bff7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,12 @@ if(WIN32) endif() find_package(Qt4 REQUIRED) + +if(ENABLE_TESTS) find_package(Boost 1.46 COMPONENTS unit_test_framework REQUIRED) +else() +find_package(Boost 1.46) +endif() #=============================================================================== #= Config Header