From 35f1849ea18dd31ccaaa344e4c5a21eb6445cf0f Mon Sep 17 00:00:00 2001 From: Baptiste Lemarcis Date: Sun, 19 May 2024 23:27:50 -0400 Subject: [PATCH] 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 --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29c1d32..3723ac1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -55,7 +55,10 @@ if (${BUILD_PYTHON}) endif() ## Executables -add_subdirectory("programs") +option(CSV_BUILD_PROGRAMS "Allow to disable building of programs" ON) +if (CSV_BUILD_PROGRAMS) + add_subdirectory("programs") +endif() ## Developer settings if (CSV_DEVELOPER)