aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/fann/remove-nouse-target.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/fann/remove-nouse-target.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/fann/remove-nouse-target.patch')
-rw-r--r--vcpkg/ports/fann/remove-nouse-target.patch85
1 files changed, 85 insertions, 0 deletions
diff --git a/vcpkg/ports/fann/remove-nouse-target.patch b/vcpkg/ports/fann/remove-nouse-target.patch
new file mode 100644
index 0000000..82a2666
--- /dev/null
+++ b/vcpkg/ports/fann/remove-nouse-target.patch
@@ -0,0 +1,85 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index ac3ff73..2fb9a59 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -23,15 +23,12 @@ SET(floatfann_LIB_SRCS
+ floatfann.c
+ )
+
+-ADD_LIBRARY(floatfann SHARED ${floatfann_LIB_SRCS})
+-ADD_LIBRARY(floatfann_static STATIC ${floatfann_LIB_SRCS})
++ADD_LIBRARY(floatfann ${floatfann_LIB_SRCS})
+
+ SET_TARGET_PROPERTIES(floatfann PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+-SET_TARGET_PROPERTIES(floatfann_static PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+ if (UNIX)
+- SET_TARGET_PROPERTIES(floatfann_static PROPERTIES OUTPUT_NAME floatfann)
+ endif(UNIX)
+-INSTALL(TARGETS floatfann floatfann_static LIBRARY DESTINATION ${LIB_INSTALL_DIR}
++INSTALL(TARGETS floatfann LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR} )
+
+@@ -42,15 +39,12 @@ SET(doublefann_LIB_SRCS
+ doublefann.c
+ )
+
+-ADD_LIBRARY(doublefann SHARED ${doublefann_LIB_SRCS})
+-ADD_LIBRARY(doublefann_static STATIC ${doublefann_LIB_SRCS})
++ADD_LIBRARY(doublefann ${doublefann_LIB_SRCS})
+
+ SET_TARGET_PROPERTIES(doublefann PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+-SET_TARGET_PROPERTIES(doublefann_static PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+ if (UNIX)
+- SET_TARGET_PROPERTIES(doublefann_static PROPERTIES OUTPUT_NAME doublefann)
+ endif(UNIX)
+-INSTALL(TARGETS doublefann doublefann_static LIBRARY DESTINATION ${LIB_INSTALL_DIR}
++INSTALL(TARGETS doublefann LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR} )
+
+@@ -61,20 +55,16 @@ SET(fixedfann_LIB_SRCS
+ fixedfann.c
+ )
+
+-ADD_LIBRARY(fixedfann SHARED ${fixedfann_LIB_SRCS})
+-ADD_LIBRARY(fixedfann_static STATIC ${fixedfann_LIB_SRCS})
++ADD_LIBRARY(fixedfann ${fixedfann_LIB_SRCS})
+
+ if(NOT MSVC)
+ TARGET_LINK_LIBRARIES(fixedfann m)
+-TARGET_LINK_LIBRARIES(fixedfann_static m)
+ endif(NOT MSVC)
+
+ SET_TARGET_PROPERTIES(fixedfann PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+-SET_TARGET_PROPERTIES(fixedfann_static PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+ if (UNIX)
+- SET_TARGET_PROPERTIES(fixedfann_static PROPERTIES OUTPUT_NAME fixedfann)
+ endif(UNIX)
+-INSTALL(TARGETS fixedfann fixedfann_static LIBRARY DESTINATION ${LIB_INSTALL_DIR}
++INSTALL(TARGETS fixedfann LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR} )
+
+@@ -85,19 +75,15 @@ SET(fann_LIB_SRCS
+ floatfann.c
+ )
+
+-ADD_LIBRARY(fann SHARED ${fann_LIB_SRCS})
+-ADD_LIBRARY(fann_static STATIC ${fann_LIB_SRCS})
++ADD_LIBRARY(fann ${fann_LIB_SRCS})
+
+ if(NOT MSVC)
+ TARGET_LINK_LIBRARIES(fann m)
+-TARGET_LINK_LIBRARIES(fann_static m)
+ endif(NOT MSVC)
+
+ SET_TARGET_PROPERTIES(fann PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+-SET_TARGET_PROPERTIES(fann_static PROPERTIES VERSION ${FANN_VERSION_STRING} SOVERSION ${FANN_VERSION_MAJOR})
+ if (UNIX)
+- SET_TARGET_PROPERTIES(fann_static PROPERTIES OUTPUT_NAME fann)
+ endif(UNIX)
+-INSTALL(TARGETS fann fann_static LIBRARY DESTINATION ${LIB_INSTALL_DIR}
++INSTALL(TARGETS fann LIBRARY DESTINATION ${LIB_INSTALL_DIR}
+ ARCHIVE DESTINATION ${LIB_INSTALL_DIR}
+ RUNTIME DESTINATION ${BIN_INSTALL_DIR} )