diff options
| author | Jesse Talavera-Greenberg <jessetalavera@aol.com> | 2017-07-20 19:32:22 -0400 |
|---|---|---|
| committer | Jesse Talavera-Greenberg <jessetalavera@aol.com> | 2017-07-20 19:32:22 -0400 |
| commit | a354afaae34f3c1525271da8f58044b7a3b5ea40 (patch) | |
| tree | 222d3a2f4221cf236d958fbf5e4893a72560fed0 | |
| parent | f90508f3be64ac68d06420ab16ba2d362e35298f (diff) | |
| download | vcpkg-a354afaae34f3c1525271da8f58044b7a3b5ea40.tar.gz vcpkg-a354afaae34f3c1525271da8f58044b7a3b5ea40.zip | |
This is personal now
| -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 |
