]> sigrok.org Git - pulseview.git/commitdiff
cmake, INSTALL: Bump the Boost requirement to >= 1.55.
authorGerhard Sittig <redacted>
Thu, 13 Oct 2016 14:25:39 +0000 (16:25 +0200)
committerUwe Hermann <redacted>
Wed, 19 Oct 2016 23:17:30 +0000 (01:17 +0200)
Support for serialization of multiprecision data (which is used for view
timestamps) was introduced in boost version 1.55. Since commit 3a21afa6
builds with versions up to and including 1.54 are reported to fail.

Bump the required version from 1.53 to 1.55. Rephrase the CMake logic
which searches for the Boost dependency. Create a list of libraries from
fixed and optional parts, which as a byproduct avoids long lines. Pass
that list of required libraries to one common find_package() call.

Signed-off-by: Gerhard Sittig <redacted>
CMakeLists.txt
INSTALL

index 69e62ee5e4dd3bed6757c1e20a1a3756ab66c377..d84f0427d6eabb7d6f183fb85272a623e103405f 100644 (file)
@@ -97,11 +97,11 @@ else()
        find_package(Qt4 REQUIRED QtCore QtGui QtSvg)
 endif()
 
        find_package(Qt4 REQUIRED QtCore QtGui QtSvg)
 endif()
 
+set(BOOSTCOMPS filesystem serialization system thread)
 if(ENABLE_TESTS)
 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()
 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.
 
 # Find the platform's thread library (needed for C++11 threads).
 # This will set ${CMAKE_THREAD_LIBS_INIT} to the correct, OS-specific value.
diff --git a/INSTALL b/INSTALL
index 3fddb39a5c3fc71a91dadd1de3aae29905eaa7c8..44e8a0d0adc6dc8069ee8c29cbc9497600d0300f 100644 (file)
--- a/INSTALL
+++ b/INSTALL
@@ -18,7 +18,7 @@ Requirements
  - Qt4 >= 4.5 or Qt5 (including the following components):
     - Qt4: QtCore, QtGui, QtSvg
     - Qt5: Qt5Core, Qt5Gui, Qt5Widgets, Qt5Svg
  - Qt4 >= 4.5 or Qt5 (including the following components):
     - Qt4: QtCore, QtGui, QtSvg
     - Qt5: Qt5Core, Qt5Gui, Qt5Widgets, Qt5Svg
- - libboost >= 1.53 (including the following libs):
+ - libboost >= 1.55 (including the following libs):
     - libboost-system
     - libboost-filesystem
     - libboost-thread
     - libboost-system
     - libboost-filesystem
     - libboost-thread