X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=CMakeLists.txt;h=326499f144ef2f1bd237e5fdf8704b0189007fcf;hp=8b5214435e1866f92e37295b11a7b888d99818bc;hb=c3bf1d31fb43dc26a00fef05d951806e3158c55b;hpb=d69b3c315c5335091a659a3c268cd5f7e27a4b26 diff --git a/CMakeLists.txt b/CMakeLists.txt index 8b521443..326499f1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -99,9 +99,9 @@ else() endif() if(ENABLE_TESTS) - find_package(Boost 1.42 COMPONENTS filesystem system thread unit_test_framework REQUIRED) + find_package(Boost 1.48 COMPONENTS filesystem system thread unit_test_framework REQUIRED) else() - find_package(Boost 1.42 COMPONENTS filesystem system thread REQUIRED) + find_package(Boost 1.48 COMPONENTS filesystem system thread REQUIRED) endif() # Find the platform's thread library (needed for C++11 threads). @@ -126,7 +126,7 @@ set(PV_VERSION_STRING "0.3.0") include(GetGitRevisionDescription) git_describe(PV_TAG_VERSION_STRING --tags --dirty) -if(NOT PV_TAG_VERSION_STRING) +if(NOT PV_TAG_VERSION_STRING AND EXISTS "${PROJECT_SOURCE_DIR}/VERSION") # Read the version from a file that is distributed with # the source package (see writepackageversion.cmake). file(STRINGS "${PROJECT_SOURCE_DIR}/VERSION" PV_TAG_VERSION_STRING LIMIT_COUNT 1)