From 36cf13cec637e332c185bdd8bb82e3877608bbc7 Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Mon, 21 May 2018 23:01:01 +0200 Subject: [PATCH] Hiding single file tests option if single file is off --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b321521..1fe82483 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -135,7 +135,7 @@ if(CLI11_SINGLE_FILE) target_include_directories(CLI11_SINGLE INTERFACE "${CMAKE_CURRENT_BINARY_DIR}/include/") endif() -option(CLI11_SINGLE_FILE_TESTS "Duplicate all the tests for a single file build" OFF) +cmake_dependent_option(CLI11_SINGLE_FILE_TESTS "Duplicate all the tests for a single file build" OFF "CLI11_SINGLE_FILE" OFF) cmake_dependent_option(CLI11_TESTING "Build the tests and add them" ON "CUR_PROJ" OFF) if(CLI11_TESTING)