X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=CMakeLists.txt;h=2d385c98258488dc01f78d8170a3b5c7510e3d9f;hb=8fc2d3bff394fba8732199dda6e98fa1f5bfd5d2;hp=85f0488d79b5282811ffc3b81114f2a17ec75984;hpb=3a025a1597f2a8774bc65ff53ce50d83f32dba88;p=gdcm.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 85f0488d..2d385c98 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,6 +3,13 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.0) # okay in fact you need at least cmake 2.0.4 to get swig working properly # and you cannot use cmake 2.0.6 out of the box due to a bug (patched in debian package) + + if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) + endif(COMMAND cmake_policy) + + + #----------------------------------------------------------------------------- # GDCM version number, usefull for packaging and doxygen doc: SET(GDCM_MAJOR_VERSION 1)