summaryrefslogtreecommitdiff
path: root/sci-libs/composable-kernel/files/composable-kernel-6.1.1-enable-examples.patch
blob: bedc79c562bd7908effc86d921d496eb4289d5db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -470,7 +470,10 @@ if(NOT DEFINED INSTANCES_ONLY)
         LIBRARY_NAME composablekernel
         PACKAGE_NAME examples
    )
-   add_subdirectory(example)
+   option(BUILD_EXAMPLES "Build examples" OFF)
+   if(BUILD_EXAMPLES)
+     add_subdirectory(example)
+   endif()
    if(BUILD_TESTING)
       add_subdirectory(test)
    endif()