Skip to content
Snippets Groups Projects

Fix several CMake warnings

Merged Florian Uhlig requested to merge f.uhlig/cbmroot:fix_cmake_warnings into master
All threads resolved!
6 files
+ 22
13
Compare changes
  • Side-by-side
  • Inline
Files
6
  • a8b7cad5
    Fix several CMake warnings · a8b7cad5
    Administrator authored
    The exec_program fuction is deprecated use execute_process instead.
    Use the FindBoost config file which is installed by Boost instead of the CMake
    module.
    Fix one cmake_minimum_required version by defining also a maximum version.
@@ -187,7 +187,10 @@ endif (CMAKE_SYSTEM_NAME MATCHES Linux)
if (CMAKE_SYSTEM_NAME MATCHES Darwin)
EXEC_PROGRAM("sw_vers -productVersion | cut -d . -f 1-2" OUTPUT_VARIABLE MAC_OS_VERSION)
execute_process(COMMAND sw_vers -productVersion
COMMAND cut -d . -f 1-2
OUTPUT_VARIABLE MAC_OS_VERSION
)
MESSAGE("-- Found a Mac OS X System ${MAC_OS_VERSION}")
if (CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
MESSAGE("-- Found GNU compiler collection")
Loading