aboutsummaryrefslogtreecommitdiff
path: root/ports/libwebm/no-samples.patch
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-10-23 10:38:27 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-10-25 10:28:08 -0700
commit66107362b1fb67c9b46d2a225d698c2f7ed417c8 (patch)
treee3d67353303907597887942eb8c241e4708ed0bb /ports/libwebm/no-samples.patch
parentece1e7a67a71e90b3432872044ecb7fdd0667f24 (diff)
downloadvcpkg-66107362b1fb67c9b46d2a225d698c2f7ed417c8.tar.gz
vcpkg-66107362b1fb67c9b46d2a225d698c2f7ed417c8.zip
[libwebm] Avoid building executables
Diffstat (limited to 'ports/libwebm/no-samples.patch')
-rw-r--r--ports/libwebm/no-samples.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/ports/libwebm/no-samples.patch b/ports/libwebm/no-samples.patch
new file mode 100644
index 000000000..c160726b9
--- /dev/null
+++ b/ports/libwebm/no-samples.patch
@@ -0,0 +1,20 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index b48868f..f2fe35b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -41,6 +41,7 @@ endif(WIN32)
+
+ include_directories("${LIBWEBM_SRC_DIR}")
+
++if(BUILD_SAMPLES)
+ # Sample section.
+ add_executable(sample
+ "${LIBWEBM_SRC_DIR}/sample.cpp")
+@@ -69,6 +70,7 @@ add_executable(webm2pes
+ "${LIBWEBM_SRC_DIR}/webm2pes.cc"
+ "${LIBWEBM_SRC_DIR}/webm2pes.h")
+ target_link_libraries(webm2pes LINK_PUBLIC webm)
++endif()
+
+ install(
+ TARGETS webm