Cleanup: remove deprecated definitions
authorCampbell Barton <ideasman42@gmail.com>
Fri, 18 May 2018 12:26:02 +0000 (14:26 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 18 May 2018 13:22:16 +0000 (15:22 +0200)
CMakeLists.txt

index f0930866d64cb2ee2f1fa160aae9ee6273b84e92..3e23b5f9986c2d0103d44056abd9da322bd17c0e 100644 (file)
@@ -66,21 +66,12 @@ endif()
 # set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
 
 # global compile definitions since add_definitions() adds for all.
-
-if(NOT (${CMAKE_VERSION} VERSION_LESS 3.0))
-       set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
-               $<$<CONFIG:Debug>:DEBUG;_DEBUG>
-               $<$<CONFIG:Release>:NDEBUG>
-               $<$<CONFIG:MinSizeRel>:NDEBUG>
-               $<$<CONFIG:RelWithDebInfo>:NDEBUG>
-       )
-else()
-       # keep until CMake-3.0 is min requirement
-       set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG           DEBUG _DEBUG)
-       set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELEASE         NDEBUG)
-       set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_MINSIZEREL      NDEBUG)
-       set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO  NDEBUG)
-endif()
+set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
+       $<$<CONFIG:Debug>:DEBUG;_DEBUG>
+       $<$<CONFIG:Release>:NDEBUG>
+       $<$<CONFIG:MinSizeRel>:NDEBUG>
+       $<$<CONFIG:RelWithDebInfo>:NDEBUG>
+)
 
 #-----------------------------------------------------------------------------
 # Set policy