X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=d84f0427d6eabb7d6f183fb85272a623e103405f;hp=69e62ee5e4dd3bed6757c1e20a1a3756ab66c377;hb=d68d75c2a5bf479e5bb1c6dab3f052de3fb2e873;hpb=f8cbea47735d02294f241610f0988c94e84f9693 diff --git a/CMakeLists.txt b/CMakeLists.txt index 69e62ee5..d84f0427 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,11 +97,11 @@ else() find_package(Qt4 REQUIRED QtCore QtGui QtSvg) endif() +set(BOOSTCOMPS filesystem serialization system thread) if(ENABLE_TESTS) - find_package(Boost 1.53 COMPONENTS filesystem serialization system thread unit_test_framework REQUIRED) -else() - find_package(Boost 1.53 COMPONENTS filesystem serialization system thread REQUIRED) + list(APPEND BOOSTCOMPS unit_test_framework) endif() +find_package(Boost 1.55 COMPONENTS ${BOOSTCOMPS} REQUIRED) # Find the platform's thread library (needed for C++11 threads). # This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value.