Skip to content

Commit

Permalink
CMake options to disable programs building (#148)
Browse files Browse the repository at this point in the history
When linked to my project multiple executable gets build that I don't need nor want

Co-authored-by: Baptiste Lemarcis <[email protected]>
  • Loading branch information
BaptisteLemarcis and Baptiste Lemarcis authored May 20, 2024
1 parent 3a3dc72 commit 35f1849
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 35f1849

Please sign in to comment.