[CMAKE] Disable rossym for GCC release builds.
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 15 Jun 2015 16:43:11 +0000 (16:43 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 15 Jun 2015 16:43:11 +0000 (16:43 +0000)
svn path=/trunk/; revision=68147

reactos/cmake/gcc.cmake

index 2ef02a0..599c669 100644 (file)
@@ -12,7 +12,9 @@ if(NOT DEFINED SEPARATE_DBG)
 endif()
 
 # Dwarf based builds (no rsym)
-if(NOT DEFINED NO_ROSSYM)
+if(CMAKE_BUILD_TYPE STREQUAL "Release")
+    set(NO_ROSSYM TRUE)
+elseif(NOT DEFINED NO_ROSSYM)
     set(NO_ROSSYM FALSE)
 endif()