build: Add option to not generate PDB files in release builds

This commit is contained in:
WerWolv
2024-01-15 23:33:31 +01:00
parent b3d3794e1d
commit 2cc07f0e73
2 changed files with 5 additions and 0 deletions

View File

@@ -648,6 +648,10 @@ function(enableUnityBuild TARGET)
endfunction()
function(generatePDBs)
if (NOT IMHEX_GENERATE_PDBS)
return()
endif ()
if (NOT WIN32 OR CMAKE_BUILD_TYPE STREQUAL "Debug")
return()
endif ()