From f8c4842d6f2dc7e2ce3a01df529bd3e2efadaaf0 Mon Sep 17 00:00:00 2001 From: Jacob Oursland Date: Mon, 9 Sep 2024 13:00:56 -0700 Subject: [PATCH] Windows: Make FreeCAD.exe debuggable on PDB builds. --- cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake b/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake index 44a9dd2b4e..7710219fe0 100644 --- a/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake +++ b/cMake/FreeCAD_Helpers/SetGlobalCompilerAndLinkerSettings.cmake @@ -34,6 +34,7 @@ macro(SetGlobalCompilerAndLinkerSettings) if(FREECAD_RELEASE_PDB) set (CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Zi") set (CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG") + set (CMAKE_EXE_LINKER_FLAGS_RELEASE "${CMAKE_EXE_LINKER_FLAGS_RELEASE} /DEBUG") endif(FREECAD_RELEASE_PDB) if(FREECAD_RELEASE_SEH) # remove /EHsc or /EHs flags because they are incompatible with /EHa