From 942044ea3072484a7f1fde40810c3174b26a3fee Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 22 Jun 2020 22:29:21 +0200 Subject: [PATCH] Make cache variable doc string compatible with Qt Creator The double quotes need to be removed from the doc string. Otherwise, Qt Creator creates a line like ``` set("EXCLUDE_TESTS_FROM_ALL" "OFF" CACHE "BOOL" "specifies whether to exclude tests from the "all" target (enabled by default)" FORCE) ``` in its `qtcsettings.cmake` which doesn't work because the escaping is missing. --- cmake/modules/TestUtilities.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/TestUtilities.cmake b/cmake/modules/TestUtilities.cmake index 50e465a..2b73745 100644 --- a/cmake/modules/TestUtilities.cmake +++ b/cmake/modules/TestUtilities.cmake @@ -6,7 +6,7 @@ if (DEFINED TESTING_UTILITIES_LOADED) endif () set(TESTING_UTILITIES_LOADED YES) -option(EXCLUDE_TESTS_FROM_ALL "specifies whether to exclude tests from the \"all\" target (enabled by default)" ON) +option(EXCLUDE_TESTS_FROM_ALL "specifies whether to exclude tests from the 'all' target (enabled by default)" ON) function (configure_test_target) # parse arguments