浏览代码

tests: allow RelWithDebInfo and MinSizeRel configs to work

Ben Boeckel 11 年之前
父节点
当前提交
7db77a828a
共有 2 个文件被更改,包括 16 次插入0 次删除
  1. 8 0
      Tests/Complex/CMakeLists.txt
  2. 8 0
      Tests/ComplexOneConfig/CMakeLists.txt

+ 8 - 0
Tests/Complex/CMakeLists.txt

@@ -83,6 +83,14 @@ set_property(DIRECTORY
   PROPERTY COMPILE_DEFINITIONS_RELEASE
   CMAKE_IS_FUN_IN_RELEASE_MODE
   )
+set_property(DIRECTORY
+  PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO
+  CMAKE_IS_FUN_IN_RELEASE_MODE
+  )
+set_property(DIRECTORY
+  PROPERTY COMPILE_DEFINITIONS_MINSIZEREL
+  CMAKE_IS_FUN_IN_RELEASE_MODE
+  )
 
 set(TEST_SEP "a b c")
 separate_arguments(TEST_SEP)

+ 8 - 0
Tests/ComplexOneConfig/CMakeLists.txt

@@ -83,6 +83,14 @@ set_property(DIRECTORY
   PROPERTY COMPILE_DEFINITIONS_RELEASE
   CMAKE_IS_FUN_IN_RELEASE_MODE
   )
+set_property(DIRECTORY
+  PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO
+  CMAKE_IS_FUN_IN_RELEASE_MODE
+  )
+set_property(DIRECTORY
+  PROPERTY COMPILE_DEFINITIONS_MINSIZEREL
+  CMAKE_IS_FUN_IN_RELEASE_MODE
+  )
 
 set(TEST_SEP "a b c")
 separate_arguments(TEST_SEP)