Commit ef4cbcdd authored by jcfr's avatar jcfr
Browse files

COMP: Update CMake policy requirements

git-svn-id: http://svn.slicer.org/Slicer4/trunk@16366 3bd1e089-480b-0410-8dfb-8563597acbee
parent df652352
project(BRAINSCommonLibProject) project(BRAINSCommonLibProject)
set(LOCAL_PROJECT_NAME BRAINSCommonLib) set(LOCAL_PROJECT_NAME BRAINSCommonLib)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(VERSION 2.8)
#-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
CMAKE_POLICY(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
endif()
enable_testing() enable_testing()
include(Dart) include(Dart)
......
project(BRAINSDemonWarp) project(BRAINSDemonWarp)
set(LOCAL_PROJECT_NAME BRAINSDemonWarp) set(LOCAL_PROJECT_NAME BRAINSDemonWarp)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(VERSION 2.8)
#-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
CMAKE_POLICY(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
endif()
enable_testing() enable_testing()
include(Dart) include(Dart)
......
project(BRAINSFit) project(BRAINSFit)
set(LOCAL_PROJECT_NAME BRAINSFit) set(LOCAL_PROJECT_NAME BRAINSFit)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(VERSION 2.8)
#-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
CMAKE_POLICY(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
endif()
enable_testing() enable_testing()
include(Dart) include(Dart)
......
project(BRAINSROIAuto) project(BRAINSROIAuto)
set(LOCAL_PROJECT_NAME BRAINSROIAuto) set(LOCAL_PROJECT_NAME BRAINSROIAuto)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(VERSION 2.8)
#-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
CMAKE_POLICY(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
endif()
enable_testing() enable_testing()
include(Dart) include(Dart)
......
project(BRAINSResample) project(BRAINSResample)
set(LOCAL_PROJECT_NAME BRAINSResample) set(LOCAL_PROJECT_NAME BRAINSResample)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
cmake_policy(VERSION 2.8)
#-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#-----------------------------------------------------------------------------
if(POLICY CMP0016)
CMAKE_POLICY(SET CMP0016 NEW)
endif()
if(POLICY CMP0017)
CMAKE_POLICY(SET CMP0017 OLD)
endif()
enable_testing() enable_testing()
include(Dart) include(Dart)
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
......
...@@ -5,28 +5,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -5,28 +5,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
# Calling PROJECT() defines projectname_SOURCE_DIR and projectname_BINARY_DIR # Calling PROJECT() defines projectname_SOURCE_DIR and projectname_BINARY_DIR
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# Include dirs # Include dirs
......
...@@ -7,28 +7,12 @@ PROJECT(Slicer) ...@@ -7,28 +7,12 @@ PROJECT(Slicer)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# Set the header template which defines custom export/import macros # Set the header template which defines custom export/import macros
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
find_package(VTK REQUIRED) find_package(VTK REQUIRED)
include(${VTK_USE_FILE}) include(${VTK_USE_FILE})
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
#find_package(KWWidgets REQUIRED) #find_package(KWWidgets REQUIRED)
#include(${KWWidgets_USE_FILE}) #include(${KWWidgets_USE_FILE})
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
find_package(ITK REQUIRED) find_package(ITK REQUIRED)
include(${ITK_USE_FILE}) include(${ITK_USE_FILE})
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
find_package(VTK REQUIRED) find_package(VTK REQUIRED)
include(${VTK_USE_FILE}) include(${VTK_USE_FILE})
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
# -------------------------------------------------------------------------- # --------------------------------------------------------------------------
# Include dirs # Include dirs
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
CMAKE_POLICY(SET ${policy} NEW)
ENDIF()
ENDFOREACH()
SET(MRMLDisplayableManager_USE_PYTHON ${Slicer_USE_PYTHONQT}) SET(MRMLDisplayableManager_USE_PYTHON ${Slicer_USE_PYTHONQT})
......
...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2) ...@@ -7,28 +7,12 @@ cmake_minimum_required(VERSION 2.8.2)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details # See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
if(POLICY CMP0016)
SET(project_policies CMAKE_POLICY(SET CMP0016 NEW)
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used. endif()
CMP0002 # NEW: Logical target names must be globally unique. if(POLICY CMP0017)
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths. CMAKE_POLICY(SET CMP0017 OLD)
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace. endif()
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007 # NEW: List command no longer ignores empty elements.
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0010 # NEW: Bad variable reference syntax is an error.
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
CMP0012 # NEW: if() recognizes numbers and boolean constants.
CMP0013 # NEW: Duplicate binary directories are not allowed.
CMP0014 # NEW: Input directories must have CMakeLists.txt