diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-11-09 22:30:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-11-09 22:31:09 +0300 |
commit | 92f059774d30faf73a695138456f57de49a9b5e4 (patch) | |
tree | beb031b8c716b206e9518f1c82377c4aa899ee72 /source/blender | |
parent | edc780c3b08c2811e142328d63f9c9b42a3e2ee6 (diff) |
CMake: remove setting of policy CMP0043 to OLD.
CMake 3.0 ignores the suffixed COMPILE_DEFINITIONS_<CONFIG> variants if policy
CMP0043 is NEW, preferring instead to consume the unsuffixed COMPILE_DEFINITONS
property and evaluate generator expressions in it.
Setting the policy to OLD causes CMake 3.0 to not ignore those properties.
Use the suffixed properties for compatibility only for CMake versions older
than 3.0 using an explicit version check. Use the non-suffixed property with
generator expressions otherwise.
These definitions should mostly not be needed at all - CMake already sets
NDEBUG in suffixed CMAKE_CXX_FLAGS_<CONFIG> variables. The _DEBUG macro is
non-standard, but is used in several places in blender (usually in an OR
combination with the DEBUG macro). Additionally, blender overwrites (instead
of appending to) the CMAKE_CXX_FLAGS_<CONFIG> variables on WIN32.
Rather than try to fundamentally change how debug-macros are handled in
blender, change the buildsystem to keep the same behavior without requiring the
CMP0043 policy set to OLD.
Diffstat (limited to 'source/blender')
0 files changed, 0 insertions, 0 deletions