# HG changeset patch # User sheepluva # Date 1421501185 -3600 # Node ID 7e8ea160152f32f2f5db74ecca81f77b173875cb # Parent 418058ce8ffe1bbf47d63f21579a2975d58b3c7c# Parent acbf69e2e5cfe711acccdd7db42a646b5baee87f merge diff -r acbf69e2e5cf -r 7e8ea160152f CMakeLists.txt --- a/CMakeLists.txt Fri Jan 16 17:51:29 2015 -0500 +++ b/CMakeLists.txt Sat Jan 17 14:26:25 2015 +0100 @@ -70,12 +70,13 @@ if(CMAKE_BUILD_TYPE) string(TOUPPER ${CMAKE_BUILD_TYPE} CMAKE_BUILD_TYPE) if(NOT((CMAKE_BUILD_TYPE MATCHES "RELEASE") OR - (CMAKE_BUILD_TYPE MATCHES "DEBUG"))) - set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release)" FORCE) - message(STATUS "Unknown build type, using default (${default_build_type})") + (CMAKE_BUILD_TYPE MATCHES "DEBUG") OR + (CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO"))) + set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release/RelWithDebInfo)" FORCE) + message(STATUS "Unknown build type ${CMAKE_BUILD_TYPE}, using default (${default_build_type})") endif() else(CMAKE_BUILD_TYPE) - set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release)" FORCE) + set(CMAKE_BUILD_TYPE ${default_build_type} CACHE STRING "Build type (Debug/Release/RelWithDebInfo)" FORCE) endif(CMAKE_BUILD_TYPE) diff -r acbf69e2e5cf -r 7e8ea160152f QTfrontend/CMakeLists.txt --- a/QTfrontend/CMakeLists.txt Fri Jan 16 17:51:29 2015 -0500 +++ b/QTfrontend/CMakeLists.txt Sat Jan 17 14:26:25 2015 +0100 @@ -190,9 +190,9 @@ #when debugging, always prompt a console to see fronted messages #TODO: check it doesn't interfere on UNIX -if(CMAKE_BUILD_TYPE MATCHES "RELEASE") +if(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO") set(console_access "WIN32") -endif(CMAKE_BUILD_TYPE MATCHES "RELEASE") +endif(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO") add_executable(hedgewars ${console_access} ${hwfr_src} diff -r acbf69e2e5cf -r 7e8ea160152f cmake_modules/compilerchecks.cmake --- a/cmake_modules/compilerchecks.cmake Fri Jan 16 17:51:29 2015 -0500 +++ b/cmake_modules/compilerchecks.cmake Sat Jan 17 14:26:25 2015 +0100 @@ -62,7 +62,7 @@ endif() endif() - if(CMAKE_BUILD_TYPE MATCHES "RELEASE") + if(CMAKE_BUILD_TYPE MATCHES "RELEASE" OR CMAKE_BUILD_TYPE MATCHES "RELWITHDEBINFO") set(CMAKE_REQUIRED_FLAGS "-Wl,--as-needed") check_c_compiler_flag("" HAVE_ASNEEDED) if(HAVE_ASNEEDED)