From f617d9ace9f2cea2c0cba4c1337575cd6f7d1cf8 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Sat, 13 Oct 2012 15:55:32 +0200 Subject: [PATCH] Only check for libboost-test if tests are enabled. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.30.2