Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
cmake: indent cosmetics
[simgrid.git] / CMakeLists.txt
index e303149..8f53fac 100644 (file)
@@ -2,9 +2,7 @@
 
 set(SIMGRID_VERSION_MAJOR "3")
 set(SIMGRID_VERSION_MINOR "25")
-set(SIMGRID_VERSION_PATCH "0") # odd => git branch; even => stable release or released snapshot
-
-set(SIMGRID_VERSION_DATE  "2020") # Year for copyright information
+set(SIMGRID_VERSION_PATCH "1") # odd => git branch; even => stable release or released snapshot
 
 if(${SIMGRID_VERSION_PATCH} EQUAL "0")
   set(release_version "${SIMGRID_VERSION_MAJOR}.${SIMGRID_VERSION_MINOR}")
@@ -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)