aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/ECMMarkAsTest.cmake16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/ECMMarkAsTest.cmake b/modules/ECMMarkAsTest.cmake
index 5d359a61..4ab88160 100644
--- a/modules/ECMMarkAsTest.cmake
+++ b/modules/ECMMarkAsTest.cmake
@@ -12,20 +12,20 @@
# all tests by invoking the 'buildtests' target.
if (NOT BUILD_TESTING)
- get_property(_buildtestsAdded GLOBAL PROPERTY BUILDTESTS_ADDED)
- if(NOT _buildtestsAdded)
- add_custom_target(buildtests)
- set_property(GLOBAL PROPERTY BUILDTESTS_ADDED TRUE)
- endif()
+ get_property(_buildtestsAdded GLOBAL PROPERTY BUILDTESTS_ADDED)
+ if(NOT _buildtestsAdded)
+ add_custom_target(buildtests)
+ set_property(GLOBAL PROPERTY BUILDTESTS_ADDED TRUE)
+ endif()
endif()
function(ecm_mark_as_test)
if (NOT BUILD_TESTING)
foreach(_target ${ARGN})
set_target_properties(${_target}
- PROPERTIES
- EXCLUDE_FROM_ALL 1
- )
+ PROPERTIES
+ EXCLUDE_FROM_ALL TRUE
+ )
add_dependencies(buildtests ${_target})
endforeach()
endif()