diff options
Diffstat (limited to 'vcpkg/ports/libsndfile/mp3lame-static.diff')
| -rw-r--r-- | vcpkg/ports/libsndfile/mp3lame-static.diff | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/libsndfile/mp3lame-static.diff b/vcpkg/ports/libsndfile/mp3lame-static.diff new file mode 100644 index 0000000..a77759a --- /dev/null +++ b/vcpkg/ports/libsndfile/mp3lame-static.diff @@ -0,0 +1,15 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index b501f08..946c321 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -236,6 +236,10 @@ if (INSTALL_PKGCONFIG_MODULE) + if (ENABLE_MPEG) + set (EXTERNAL_MPEG_REQUIRE "libmpg123") + set (EXTERNAL_MPEG_LIBS "-lmp3lame") ++ get_target_property(mp3lame_binary mp3lame::mp3lame IMPORTED_LOCATION_RELEASE) ++ if(mp3lame_binary MATCHES "mp3lame-static") ++ set (EXTERNAL_MPEG_LIBS "-lmp3lame-static -lmpghip-static") ++ endif() + endif () + + configure_file (sndfile.pc.in sndfile.pc @ONLY) |