diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2018-03-13 11:06:52 -0700 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2018-03-13 11:06:52 -0700 |
| commit | 40bc3cb716c912e7a9cd567369a77918cfce87a2 (patch) | |
| tree | e304412e7f653b7d0739b23425affb0a1478babe /ports/libssh/only-one-flavor-threads.patch | |
| parent | 3c7997215bc2e44125912fb7aae672f1b63944a8 (diff) | |
| download | vcpkg-40bc3cb716c912e7a9cd567369a77918cfce87a2.tar.gz vcpkg-40bc3cb716c912e7a9cd567369a77918cfce87a2.zip | |
[libssh] Fix static builds for non-windows
Diffstat (limited to 'ports/libssh/only-one-flavor-threads.patch')
| -rw-r--r-- | ports/libssh/only-one-flavor-threads.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ports/libssh/only-one-flavor-threads.patch b/ports/libssh/only-one-flavor-threads.patch new file mode 100644 index 000000000..31b3e1f36 --- /dev/null +++ b/ports/libssh/only-one-flavor-threads.patch @@ -0,0 +1,21 @@ +diff --git a/src/threads/CMakeLists.txt b/src/threads/CMakeLists.txt
+index 2ab4e1b..a47620b 100644
+--- a/src/threads/CMakeLists.txt
++++ b/src/threads/CMakeLists.txt
+@@ -59,6 +59,7 @@ include_directories(
+ if (libssh_threads_SRCS)
+ set(LIBSSH_THREADS ON CACHE "libssh threads lib" INTERNAL)
+
++ if (NOT WITH_STATIC_LIB)
+ add_library(${LIBSSH_THREADS_SHARED_LIBRARY} SHARED ${libssh_threads_SRCS})
+
+ target_link_libraries(${LIBSSH_THREADS_SHARED_LIBRARY} ${LIBSSH_THREADS_LINK_LIBRARIES})
+@@ -89,7 +90,7 @@ if (libssh_threads_SRCS)
+ COMPONENT libraries
+ )
+
+- if (WITH_STATIC_LIB)
++ else (WITH_STATIC_LIB)
+ add_library(${LIBSSH_THREADS_STATIC_LIBRARY} STATIC ${libssh_threads_SRCS})
+
+ if (MSVC)
|
