build: Add option to not generate PDB files in release builds
This commit is contained in:
parent
b3d3794e1d
commit
2cc07f0e73
@ -16,6 +16,7 @@ option(IMHEX_STRICT_WARNINGS "Enable most available warnings and treat them as e
|
|||||||
option(IMHEX_STATIC_LINK_PLUGINS "Statically link all plugins into the main executable" OFF)
|
option(IMHEX_STATIC_LINK_PLUGINS "Statically link all plugins into the main executable" OFF)
|
||||||
option(IMHEX_GENERATE_PACKAGE "Specify if a native package should be built. Only usable on Windows and MacOS" OFF)
|
option(IMHEX_GENERATE_PACKAGE "Specify if a native package should be built. Only usable on Windows and MacOS" OFF)
|
||||||
option(IMHEX_ENABLE_UNITY_BUILD "Enables building ImHex as a unity build." OFF)
|
option(IMHEX_ENABLE_UNITY_BUILD "Enables building ImHex as a unity build." OFF)
|
||||||
|
option(IMHEX_GENERATE_PDBS "Enable generating PDB files in non-debug builds" ON)
|
||||||
|
|
||||||
# Basic compiler and cmake configurations
|
# Basic compiler and cmake configurations
|
||||||
set(CMAKE_CXX_STANDARD 23)
|
set(CMAKE_CXX_STANDARD 23)
|
||||||
|
@ -648,6 +648,10 @@ function(enableUnityBuild TARGET)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(generatePDBs)
|
function(generatePDBs)
|
||||||
|
if (NOT IMHEX_GENERATE_PDBS)
|
||||||
|
return()
|
||||||
|
endif ()
|
||||||
|
|
||||||
if (NOT WIN32 OR CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if (NOT WIN32 OR CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||||
return()
|
return()
|
||||||
endif ()
|
endif ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user