CMake: Fix PDB install directory for library installation

obs-plugintemplate uses the `obs_libraries` component to install
obs components required for plugin development. The need of the separate
`pdbs` directory was removed a while ago (as PDB target installation
can be flagged as `OPTIONAL` and enabled for specific configurations
only). This part was overlooked in that change.
master
PatTheMav 2022-03-22 15:24:49 +01:00
parent 6d5dd75e4a
commit 15b6128d09
No known key found for this signature in database
GPG Key ID: CEFD5D83C12A66B3
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)