X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e7fd02bb2873388f1cacd8458104c37db9068208..dffc5212ce51c75b3ea19d884fb7607265e75d21:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index f3e237c72e..8f53fac654 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,11 +1,9 @@ # Build the version number set(SIMGRID_VERSION_MAJOR "3") -set(SIMGRID_VERSION_MINOR "24") +set(SIMGRID_VERSION_MINOR "25") set(SIMGRID_VERSION_PATCH "1") # odd => git branch; even => stable release or released snapshot -set(SIMGRID_VERSION_DATE "2019") # Year for copyright information - if(${SIMGRID_VERSION_PATCH} EQUAL "0") set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}") else() @@ -21,6 +19,10 @@ set(libsimgrid-java_version "${release_version}") # Basic checks on cmake cmake_minimum_required(VERSION 3.5) +#for lto, to avoid warning (should be removed when switching to requiring cmake >= 3.9) +if(CMAKE_VERSION VERSION_GREATER "3.9") + cmake_policy(SET CMP0069 NEW) +endif() message(STATUS "Cmake version ${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}.${CMAKE_PATCH_VERSION}") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_HOME_DIRECTORY}/tools/cmake/Modules) @@ -232,7 +234,7 @@ if(enable_ns3) endif() set(SIMGRID_HAVE_MSG 0) -if(enable_MSG) +if(enable_msg) set(SIMGRID_HAVE_MSG 1) endif() @@ -412,8 +414,8 @@ endif() mark_as_advanced(PATH_LIBDW_H) mark_as_advanced(PATH_LIBDW_LIB) -if(enable_java AND NOT enable_MSG) - message(FATAL_ERROR "Cannot activate the Java bindings without the MSG module. Either add -Denable_MSG=ON or -Denable_java=OFF") +if(enable_java AND NOT enable_msg) + message(FATAL_ERROR "Cannot activate the Java bindings without the MSG module. Either add -Denable_msg=ON or -Denable_java=OFF") endif() if (enable_model-checking AND enable_ns3)