summaryrefslogtreecommitdiff
path: root/poco-deal-with-libsuffix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'poco-deal-with-libsuffix.patch')
-rw-r--r--poco-deal-with-libsuffix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/poco-deal-with-libsuffix.patch b/poco-deal-with-libsuffix.patch
new file mode 100644
index 0000000..09540f7
--- /dev/null
+++ b/poco-deal-with-libsuffix.patch
@@ -0,0 +1,12 @@
+--- poco-poco-1.12.4-release/CMakeLists.txt.orig 2025-08-23 10:35:09.617111500 +0800
++++ poco-poco-1.12.4-release/CMakeLists.txt 2025-08-23 10:38:06.806080300 +0800
+@@ -52,6 +52,9 @@
+
+ # Enable standard installation directories
+ include(GNUInstallDirs)
++if("${LIB_SUFFIX}" STREQUAL "" AND NOT ${CMAKE_INSTALL_LIBDIR} STREQUAL "lib")
++ STRING(REPLACE "lib" "" LIB_SUFFIX ${CMAKE_INSTALL_LIBDIR})
++endif("${LIB_SUFFIX}" STREQUAL "" AND NOT ${CMAKE_INSTALL_LIBDIR} STREQUAL "lib")
+
+ # Include some common macros to simpilfy the Poco CMake files
+ include(PocoMacros)