diff --git a/cmake/macros.cmake b/cmake/macros.cmake index edc30fcfb..c04c760a7 100644 --- a/cmake/macros.cmake +++ b/cmake/macros.cmake @@ -209,9 +209,9 @@ function(SDL_install_pdb TARGET DIRECTORY) elseif(type STREQUAL "STATIC_LIBRARY") # FIXME: Use $.pdb\")") + install(CODE "file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${DIRECTORY}\" TYPE FILE OPTIONAL FILES \"${CMAKE_CURRENT_BINARY_DIR}/\${CMAKE_INSTALL_CONFIG_NAME}/${TARGET}.pdb\")") else() - install(CODE "file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${DIRECTORY}\" TYPE FILE OPTIONAL FILES \"${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${TARGET}.dir/$.pdb\")") + install(CODE "file(INSTALL DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${DIRECTORY}\" TYPE FILE OPTIONAL FILES \"${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${TARGET}.dir/${TARGET}.pdb\")") endif() endif() endfunction()