Skip to content

Commit cee08ec

Browse files
committed
Merge pull request flann-lib#127 from gcasey/master
Option to disable example building
2 parents 275d801 + 3922081 commit cee08ec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ option(BUILD_C_BINDINGS "Build C bindings" ON)
5353
option(BUILD_PYTHON_BINDINGS "Build Python bindings" ON)
5454
option(BUILD_MATLAB_BINDINGS "Build Matlab bindings" ON)
5555
option(BUILD_CUDA_LIB "Build CUDA library" OFF)
56+
option(BUILD_EXAMPLES "Build examples" ON)
5657
option(USE_OPENMP "Use OpenMP multi-threading" ON)
5758
option(USE_MPI "Use MPI" OFF)
5859

@@ -154,7 +155,9 @@ endif()
154155

155156
add_subdirectory( cmake )
156157
add_subdirectory( src )
157-
add_subdirectory( examples )
158+
if (BUILD_EXAMPLES)
159+
add_subdirectory( examples )
160+
endif(BUILD_EXAMPLES)
158161
add_subdirectory( test )
159162
add_subdirectory( doc )
160163

0 commit comments

Comments
 (0)