diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-02-16 13:38:03 +0100 |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-02-16 13:38:03 +0100 |
commit | 6a8fd03a31f0e6ff180d219c4477ac4ce3ce0181 (patch) | |
tree | 03649df64a658496f3e3a95ff04d1ed3d2038669 | |
parent | 79e46741185e4d8268409b21acc2fe5a78d0d694 (diff) | |
download | extra-cmake-modules-6a8fd03a31f0e6ff180d219c4477ac4ce3ce0181.tar.gz extra-cmake-modules-6a8fd03a31f0e6ff180d219c4477ac4ce3ce0181.tar.bz2 |
Simply test for the target, no need for the global property.
This was probably added before if() supported testing for targets.
Ale
-rw-r--r-- | modules/ECMMarkAsTest.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/ECMMarkAsTest.cmake b/modules/ECMMarkAsTest.cmake index 4ab88160..f1e53e4b 100644 --- a/modules/ECMMarkAsTest.cmake +++ b/modules/ECMMarkAsTest.cmake @@ -12,10 +12,8 @@ # all tests by invoking the 'buildtests' target. if (NOT BUILD_TESTING) - get_property(_buildtestsAdded GLOBAL PROPERTY BUILDTESTS_ADDED) - if(NOT _buildtestsAdded) + if(NOT TARGET buildtests) add_custom_target(buildtests) - set_property(GLOBAL PROPERTY BUILDTESTS_ADDED TRUE) endif() endif() |