Commit 26fa59b7459a84ad5415091fbf21c7630672719e
1 parent
2b40b8cb
Build CLI11 when option is on but tests are not built
Showing
1 changed file
with
1 additions
and
1 deletions
CMakeLists.txt
| ... | ... | @@ -30,7 +30,7 @@ if(CLI_SINGLE_FILE) |
| 30 | 30 | COMMAND python "${CMAKE_CURRENT_SOURCE_DIR}/scripts/MakeSingleHeader.py" "${CMAKE_CURRENT_BINARY_DIR}/include/CLI11.hpp" |
| 31 | 31 | DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/include/CLI/CLI.hpp" ${CLI_headers} |
| 32 | 32 | ) |
| 33 | - add_custom_target(generate_cli_single_file | |
| 33 | + add_custom_target(generate_cli_single_file ALL | |
| 34 | 34 | DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/include/CLI11.hpp") |
| 35 | 35 | |
| 36 | 36 | add_library(CLI_SINGLE INTERFACE) | ... | ... |