X-Git-Url: http://git.code-monkey.de/?a=blobdiff_plain;f=CMakeLists.txt;h=e101f96a8255ca5beaf2d1997cf0dc3e886b3a2a;hb=f22092918bd17b3e138079c7be70d34d9d15c0a0;hp=0b28850258cdb88d56a1eab520a0d6500a7bdeb1;hpb=238b21f366aa9ac71e2801cfa7ef7e16ba8b390d;p=pulseview.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b28850..e101f96 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 system thread unit_test_framework REQUIRED) -else() - find_package(Boost 1.53 COMPONENTS filesystem 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. @@ -396,6 +396,7 @@ add_definitions(${QT_DEFINITIONS} -DQT_NO_KEYWORDS) add_definitions(-D__STDC_LIMIT_MACROS) add_definitions(-Wall -Wextra) add_definitions(-std=c++11) +add_definitions(-fext-numeric-literals) if(ENABLE_DECODE) add_definitions(-DENABLE_DECODE)