Skip to content

Commit 35f1849

Browse files
BaptisteLemarcisBaptiste Lemarcis
and
Baptiste Lemarcis
authored
CMake options to disable programs building (#148)
When linked to my project multiple executable gets build that I don't need nor want Co-authored-by: Baptiste Lemarcis <[email protected]>
1 parent 3a3dc72 commit 35f1849

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,10 @@ if (${BUILD_PYTHON})
5555
endif()
5656

5757
## Executables
58-
add_subdirectory("programs")
58+
option(CSV_BUILD_PROGRAMS "Allow to disable building of programs" ON)
59+
if (CSV_BUILD_PROGRAMS)
60+
add_subdirectory("programs")
61+
endif()
5962

6063
## Developer settings
6164
if (CSV_DEVELOPER)

0 commit comments

Comments
 (0)