diff options
| -rw-r--r-- | ports/allegro5/fix-pdb-install.patch | 13 | ||||
| -rw-r--r-- | ports/allegro5/portfile.cmake | 7 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/allegro5/fix-pdb-install.patch b/ports/allegro5/fix-pdb-install.patch new file mode 100644 index 000000000..ef964b9f3 --- /dev/null +++ b/ports/allegro5/fix-pdb-install.patch @@ -0,0 +1,13 @@ +diff --git a/cmake/Common.cmake b/cmake/Common.cmake +index 782196f..de29535 100644 +--- a/cmake/Common.cmake ++++ b/cmake/Common.cmake +@@ -223,7 +223,7 @@ function(install_our_library target filename) + # PUBLIC_HEADER DESTINATION "include" + ) + if(MSVC AND BUILD_SHARED_LIBS) +- install(FILES ${CMAKE_BINARY_DIR}/lib/\${CMAKE_INSTALL_CONFIG_NAME}/${filename}.pdb ++ install(FILES ${CMAKE_BINARY_DIR}/lib/${filename}.pdb + DESTINATION lib + CONFIGURATIONS Debug RelWithDebInfo + ) diff --git a/ports/allegro5/portfile.cmake b/ports/allegro5/portfile.cmake index 094219a83..d2801d5d4 100644 --- a/ports/allegro5/portfile.cmake +++ b/ports/allegro5/portfile.cmake @@ -25,6 +25,13 @@ if (VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") else() set(ALLEGRO_USE_STATIC -DSHARED=OFF) endif() + +vcpkg_apply_patches( + SOURCE_PATH ${SOURCE_PATH} + PATCHES + ${CMAKE_CURRENT_LIST_DIR}/fix-pdb-install.patch +) + vcpkg_configure_cmake( SOURCE_PATH ${SOURCE_PATH} PREFER_NINJA # Disable this option if project cannot be built with Ninja |
