diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-08-22 16:24:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-08-22 16:24:14 +0400 |
commit | 817273931a42f807809a9d0f000564e2bd38dfb8 (patch) | |
tree | 7abf5e7b8710088a7b9000809124b1bddf3cba00 /CMakeLists.txt | |
parent | 5394cabe244bea5c01f03bcf9511fd0a54738a67 (diff) |
buildinfo is now quoted from the build systems, avoids stripping quotes on startup.
tested with linux/cmake linux/scons windows/cmake/mingw windows/cmake/msvc
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0cdf1fb9da9..ccd101dd46d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,6 +63,22 @@ set(CMAKE_BUILD_TYPE_INIT "Release") # set_property(GLOBAL PROPERTY RULE_MESSAGES OFF) #----------------------------------------------------------------------------- +# Set policy + +# see "cmake --help-policy CMP0003" +# So library linking is more sane +cmake_policy(SET CMP0003 NEW) + +# So BUILDINFO and BLENDERPATH strings are automatically quoted +cmake_policy(SET CMP0005 NEW) + +# So syntax problems are errors +cmake_policy(SET CMP0010 NEW) + +# Input directories must have CMakeLists.txt +cmake_policy(SET CMP0014 NEW) + +#----------------------------------------------------------------------------- # Load some macros. include(build_files/cmake/macros.cmake) |