CMake: Don't install release PDBs when stripped releases is enabled

See #26338
This commit is contained in:
Maarten Bent
2026-04-11 20:18:14 +02:00
parent 62403ce1e0
commit 8c1ede6607
+5 -1
View File
@@ -588,7 +588,11 @@ macro(wx_add_library name)
)
if(wxBUILD_SHARED AND MSVC AND wxBUILD_INSTALL_PDB)
wx_install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION "${runtime_dir}")
if(wxBUILD_STRIPPED_RELEASE)
wx_install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION "${runtime_dir}" CONFIGURATIONS Debug RelWithDebInfo)
else()
wx_install(FILES $<TARGET_PDB_FILE:${name}> DESTINATION "${runtime_dir}")
endif()
endif()
wx_target_enable_precomp(${name} "${wxSOURCE_DIR}/include/wx/wxprec.h")