mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 07:39:26 +01:00
cmake: Removes check against CMAKE_BUILD_TYPE for multi-configuration generators
This commit is contained in:
parent
8882f33e94
commit
8ef5b6d302
@ -336,17 +336,13 @@ if(NOT CMAKE_BUILD_TYPE)
|
|||||||
"Build type (Release/Debug/RelWithDebInfo/MinSizeRel)" FORCE)
|
"Build type (Release/Debug/RelWithDebInfo/MinSizeRel)" FORCE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
option(ENABLE_GPROF "Enable gprof profiling (must be using Debug build)" OFF)
|
||||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if(ENABLE_GPROF)
|
||||||
|
check_and_add_flag(HAVE_PG -pg)
|
||||||
option(ENABLE_GPROF "Enable gprof profiling (must be using Debug build)" OFF)
|
if(NOT FLAG_C_HAVE_PG)
|
||||||
if(ENABLE_GPROF)
|
message(FATAL_ERROR "Compiler option -pg is not supported")
|
||||||
check_and_add_flag(HAVE_PG -pg)
|
|
||||||
if(NOT FLAG_C_HAVE_PG)
|
|
||||||
message(FATAL_ERROR "Compiler option -pg is not supported")
|
|
||||||
endif()
|
|
||||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
|
|
||||||
endif()
|
endif()
|
||||||
|
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(FASTLOG)
|
if(FASTLOG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user