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
This commit is contained in:
Campbell Barton
2011-08-22 12:24:14 +00:00
parent 5394cabe24
commit 817273931a
7 changed files with 35 additions and 57 deletions

View File

@@ -62,6 +62,22 @@ set(CMAKE_BUILD_TYPE_INIT "Release")
# quiet output for Makefiles, 'make -s' helps too
# 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)