aboutsummaryrefslogtreecommitdiff
path: root/ports/cmocka/shared-lib.patch
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2019-05-01 17:19:12 -0500
committerPhil Christensen <philc@microsoft.com>2019-05-01 15:19:12 -0700
commitf47866c4c46da60061e97d752146f8ea2c05b01f (patch)
tree99a4056f66bd3f0204e3eef787ea8c6ba01d65ec /ports/cmocka/shared-lib.patch
parentd3c18ed57e2ed58f922e556bbe1f50a88ea7c716 (diff)
downloadvcpkg-f47866c4c46da60061e97d752146f8ea2c05b01f.tar.gz
vcpkg-f47866c4c46da60061e97d752146f8ea2c05b01f.zip
[cmocka] Add new port (fix #4728) (#5669)
Diffstat (limited to 'ports/cmocka/shared-lib.patch')
-rw-r--r--ports/cmocka/shared-lib.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/ports/cmocka/shared-lib.patch b/ports/cmocka/shared-lib.patch
new file mode 100644
index 000000000..8c2f76277
--- /dev/null
+++ b/ports/cmocka/shared-lib.patch
@@ -0,0 +1,22 @@
+diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
+index 5684685..8555169 100644
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -30,7 +30,7 @@ if (WIN32)
+ cmocka.def
+ )
+ endif (WIN32)
+-
++if (BUILD_SHARED_LIBS)
+ add_library(${CMOCKA_SHARED_LIBRARY} SHARED ${cmocka_SRCS})
+
+ target_include_directories(${CMOCKA_SHARED_LIBRARY}
+@@ -82,7 +82,7 @@ install(TARGETS
+ ${CMAKE_INSTALL_BINDIR}
+ COMPONENT
+ ${PROJECT_NAME})
+-
++endif (BUILD_SHARED_LIBS)
+ if (BUILD_STATIC_LIB)
+ add_library(${CMOCKA_STATIC_LIBRARY} STATIC ${cmocka_SRCS})
+