X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=5ebed30acb3de3b8d136cd6a2dc216d3b57e46e5;hb=f298b8329ac9357d1aed3ebfd5a79eae67315eb9;hp=d9613c21b20d509e7ce86f6e90bfdcb3c630341d;hpb=de35484154f0fc838c0aa515db96994166bba17d;p=creaRigidRegistration.git diff --git a/CMakeLists.txt b/CMakeLists.txt index d9613c2..5ebed30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,13 +2,20 @@ # # Unless you are an experimented cmake user, # have a look at : -# http://www.creatis.insa-lyon.fr/creatools/GettingStarted_creaTools +# http://www.creatis.insa-lyon.fr/site/fr/CreatoosGettingStarted-v2.0.X # before starting. # # --------------------------------- CMAKE_MINIMUM_REQUIRED(VERSION 2.6) +# for CMake 2.6 corrected behaviour (see "cmake --help-policy CMP0003") +IF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) + CMAKE_POLICY(SET CMP0003 NEW) + CMAKE_POLICY(SET CMP0005 NEW) + CMAKE_POLICY(SET CMP0011 NEW) +ENDIF(COMMAND cmake_policy AND ${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} GREATER 4) + ################################### PROJECT(creaRigidRegistration) ################################### @@ -17,7 +24,7 @@ PROJECT(creaRigidRegistration) # The project version SET(PROJECT_MAJOR_VERSION 1) SET(PROJECT_MINOR_VERSION 0) -SET(PROJECT_BUILD_VERSION 0) +SET(PROJECT_BUILD_VERSION 1) #================================== #==================================