add RELEASE_REAL to release builds
authorTaylor Richards <taylor@icculus.org>
Thu, 8 Mar 2018 16:31:49 +0000 (11:31 -0500)
committerTaylor Richards <taylor@icculus.org>
Thu, 8 Mar 2018 16:31:49 +0000 (11:31 -0500)
CMakeLists.txt

index e019ff4..79c5d9b 100644 (file)
@@ -49,9 +49,9 @@ if(NOT WIN32)
 # add_definitions(-Wno-deprecated)
   add_definitions(-fsigned-char)
 
-  set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DNDEBUG -g -O2")
+  set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DNDEBUG -DRELEASE_REAL -g -O2")
   set(CMAKE_CXX_FLAGS_MINSIZEREL "${CMAKE_CXX_FLAGS_MINSIZEREL} -DNDEBUG -Os")
-  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG -O2")
+  set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -DNDEBUG -DRELEASE_REAL -O2")
   set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -g3")
 else()
   set(SDL2DIR "${CMAKE_SOURCE_DIR}/../Support/SDL2" CACHE PATH "Path to SDL2")