Commit 3e37e1bf authored by jcfr's avatar jcfr
Browse files

COMP: Enable CMake policy CMP00{02, 04, 05, 06, 07, 08, 09, 11, 14}

CMP0002: Logical target names must be globally unique.
CMP0004: Libraries linked may NOT have leading or trailing whitespace.
CMP0005: Preprocessor definition values are now escaped automatically.
CMP0006: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
CMP0007: List command no longer ignores empty elements.
CMP0008: Libraries linked by full-path must have a valid library file name.
CMP0009: FILE GLOB_RECURSE calls should not follow symlinks by default.
CMP0011: Included scripts do automatic cmake_policy PUSH and POP.
CMP0014: Input directories must have CMakeLists.txt

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15161 3bd1e089-480b-0410-8dfb-8563597acbee
parent 3908a680
......@@ -10,19 +10,19 @@ PROJECT(Slicer)
SET(project_policies
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
#CMP0002 # NEW: Logical target names must be globally unique.
CMP0002 # NEW: Logical target names must be globally unique.
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths.
#CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
#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.
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
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.
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
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
......
......@@ -16,19 +16,19 @@ enable_language(CXX)
SET(project_policies
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
#CMP0002 # NEW: Logical target names must be globally unique.
CMP0002 # NEW: Logical target names must be globally unique.
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths.
#CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
#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.
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
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.
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
CMP0014 # NEW: Input directories must have CMakeLists.txt
)
FOREACH(policy ${project_policies})
IF(POLICY ${policy})
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment