fix build break for non msvc compiler

This commit is contained in:
Rick Vogel 2024-01-11 18:05:45 +01:00 committed by uwerat
parent 09ee9dad3a
commit da066d1edd
2 changed files with 10 additions and 6 deletions

View File

@ -54,6 +54,8 @@ install(EXPORT ${PACKAGE_NAME}Targets
DESTINATION DESTINATION
${PACKAGE_LOCATION}) ${PACKAGE_LOCATION})
install(FILES $<TARGET_PDB_FILE:${target}> if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
install(FILES $<TARGET_PDB_FILE:${target}>
DESTINATION DESTINATION
${QSK_INSTALL_LIBS} OPTIONAL) ${QSK_INSTALL_LIBS} OPTIONAL)
endif()

View File

@ -562,6 +562,8 @@ install(EXPORT ${PACKAGE_NAME}Targets
DESTINATION DESTINATION
${PACKAGE_LOCATION}) ${PACKAGE_LOCATION})
install(FILES $<TARGET_PDB_FILE:${target}> if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
install(FILES $<TARGET_PDB_FILE:${target}>
DESTINATION DESTINATION
${QSK_INSTALL_LIBS} OPTIONAL) ${QSK_INSTALL_LIBS} OPTIONAL)
endif()