Author: akhaldi
Date: Sat May 23 10:31:52 2015
New Revision: 67859
URL:
http://svn.reactos.org/svn/reactos?rev=67859&view=rev
Log:
[CMAKE] Fix setting CMake build type so we can use other types too (like Release).
Modified:
trunk/reactos/CMakeLists.txt
Modified: trunk/reactos/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/CMakeLists.txt?rev=67859&a…
==============================================================================
--- trunk/reactos/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/CMakeLists.txt [iso-8859-1] Sat May 23 10:31:52 2015
@@ -47,8 +47,10 @@
string(TOLOWER ${ARCH} ARCH)
# Default to Debug for the build type
-set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
- "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS
used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
+if(NOT CMAKE_BUILD_TYPE)
+ set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
+ "Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.")
+endif()
# Compile options
if(ARCH STREQUAL "i386")