mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 12:11:25 +00:00
- Fixed: PROFILE was incorrectly declared in the top-level CMakeLists.txt, so GCC always
generating profiling information for Debug and RelWithDebInfo builds. This happened to also bring up that game-music-emu and DUMB are always built as RelWithDebInfo. If we're doing a normal Release build, we can just leave them as Release as well. SVN r1808 (trunk)
This commit is contained in:
parent
e1683dfed3
commit
465d52b766
3 changed files with 7 additions and 3 deletions
|
@ -10,7 +10,7 @@ set( ZDOOM_OUTPUT_DIR ${CMAKE_BINARY_DIR} CACHE PATH "Directory where zdoom.pk3
|
|||
set( ZDOOM_EXE_NAME "zdoom" CACHE FILEPATH "Name of the executable to create." )
|
||||
|
||||
if( CMAKE_COMPILER_IS_GNUCXX )
|
||||
set( PROFILE CACHE 0 BOOL "Enable profiling with gprof for Debug and RelWithDebInfo build types." )
|
||||
set( PROFILE 0 CACHE BOOL "Enable profiling with gprof for Debug and RelWithDebInfo build types." )
|
||||
endif( CMAKE_COMPILER_IS_GNUCXX )
|
||||
|
||||
find_package( BZip2 )
|
||||
|
|
|
@ -3,7 +3,9 @@ cmake_minimum_required( VERSION 2.4 )
|
|||
# DUMB is much slower in a Debug build than a Release build, so we force a Release
|
||||
# build here, since we're not maintaining DUMB, only using it.
|
||||
# Comment out the below line to allow Debug builds.
|
||||
set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
|
||||
if( NOT CMAKE_BUILD_TYPE MATCHES "Release" )
|
||||
set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
|
||||
endif( NOT CMAKE_BUILD_TYPE MATCHES "Release" )
|
||||
|
||||
set( CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG -DDEBUGMODE=1" )
|
||||
|
||||
|
|
|
@ -2,7 +2,9 @@ cmake_minimum_required( VERSION 2.4 )
|
|||
include( CheckCXXCompilerFlag )
|
||||
|
||||
# I don't plan on debugging this, so make it a release build.
|
||||
set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
|
||||
if( NOT CMAKE_BUILD_TYPE MATCHES "Release" )
|
||||
set( CMAKE_BUILD_TYPE "RelWithDebInfo" )
|
||||
endif( NOT CMAKE_BUILD_TYPE MATCHES "Release" )
|
||||
|
||||
if( CMAKE_COMPILER_IS_GNUCXX )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall" )
|
||||
|
|
Loading…
Reference in a new issue