]> sigrok.org Git - pulseview.git/blobdiff - CMakeLists.txt
Restore the default of "pulseview foo.sr" opening the file.
[pulseview.git] / CMakeLists.txt
index 8b5214435e1866f92e37295b11a7b888d99818bc..326499f144ef2f1bd237e5fdf8704b0189007fcf 100644 (file)
@@ -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)