aboutsummaryrefslogtreecommitdiff
path: root/ports/libwebm/no-samples.patch
blob: c160726b916d7f43aeb15ed9e8cc8c7f1c01f688 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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