Permalink
Browse files

Fix "make test" on --rwd.

git-svn-id: file:///home/shlomif/Backup/svn-dumps/google-code/svnsync-repos/fc-solve/fc-solve/trunk@3735 e7e8a897-7ba4-4ee7-b36f-f4c66519b19a
  • Loading branch information...
1 parent 3c0044e commit 3e4915bd2bd4ab4ce3010063c3797a68871c51a4 shlomif committed Feb 3, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 fc-solve/source/CMakeLists.txt
View
4 fc-solve/source/CMakeLists.txt
@@ -373,10 +373,10 @@ IF (OPTIMIZATION_OMIT_FRAME_POINTER)
LIST(APPEND COMPILER_FLAGS_TO_CHECK "-fomit-frame-pointer")
ENDIF(OPTIMIZATION_OMIT_FRAME_POINTER)
-IF (CMAKE_BUILD_TYPE STREQUAL debug)
+IF ((CMAKE_BUILD_TYPE STREQUAL debug) OR (CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo))
LIST(APPEND COMPILER_FLAGS_TO_CHECK "-DFCS_COMPILE_DEBUG_FUNCTIONS=1")
LIST(APPEND COMPILER_FLAGS_TO_CHECK "-DDEBUG=1")
-ENDIF (CMAKE_BUILD_TYPE STREQUAL debug)
+ENDIF ((CMAKE_BUILD_TYPE STREQUAL debug) OR (CMAKE_BUILD_TYPE STREQUAL RelWithDebInfo))
IF (CMAKE_BUILD_TYPE STREQUAL release)
LIST(APPEND COMPILER_FLAGS_TO_CHECK "-flto")

0 comments on commit 3e4915b

Please sign in to comment.