Merge pull request #6190 from PatTheMav/cmake-pdb-branch

CMake: Fix PDB install directory for library installation
master
Patrick Heyer 2022-03-22 17:10:27 +01:00 committed by GitHub
commit 13f2d7925f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -210,11 +210,11 @@ function(export_target target)
if(MSVC)
install(
DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/pdbs/"
FILES $<TARGET_PDB_FILE:${target}>
CONFIGURATIONS "RelWithDebInfo" "Debug"
DESTINATION "${OBS_EXECUTABLE_EXPORT_DESTINATION}"
CONFIGURATIONS Debug RelWithDebInfo
COMPONENT obs_libraries
EXCLUDE_FROM_ALL)
OPTIONAL EXCLUDE_FROM_ALL)
endif()
include(GenerateExportHeader)