File: Build-examples.patch

package info (click to toggle)
cppgir 2.0%2Bgit20240928.c8bb1c6%2Breally2.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,228 kB
  • sloc: cpp: 14,307; ansic: 339; makefile: 11; sh: 9
file content (16 lines) | stat: -rw-r--r-- 565 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Description: Build examples as part of `make all`
Author: Nicholas Guriev <guriev-ns@ya.ru>
Last-Update: Wed, 18 Oct 2023 13:09:05 +0300

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e11652c..1861ab1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -305,6 +305,7 @@ message(STATUS "example programs: ${EXAMPLE_TARGETS}")
 add_custom_target(examples)
 if (EXAMPLE_TARGETS)
     add_dependencies(examples ${EXAMPLE_TARGETS})
+    set_property(TARGET examples PROPERTY EXCLUDE_FROM_ALL FALSE)
 endif ()
 
 add_custom_target(wrappers DEPENDS ${GENERATED_DIR})