blob: f5c2106e7f4f1ad4f480dc40717ddbb4947e1b31 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d058bbe..260d940 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -123,8 +123,7 @@ if ( stlab.testing OR stlab.boost_variant OR stlab.boost_optional )
endif()
endif()
-
- if(NOT TARGET Boost::unit_test_framework)
+ if (stlab.testing AND NOT TARGET Boost::unit_test_framework)
message(FATAL_ERROR "Could not find Boost unit test framework.")
endif()
|