diff options
author | Bernhard Loos <nhuh.put@web.de> | 2007-08-06 01:42:44 +0000 |
---|---|---|
committer | Bernhard Loos <nhuh.put@web.de> | 2007-08-06 01:42:44 +0000 |
commit | 180eea9f858006ad5c000a5f48f431a735dc7004 (patch) | |
tree | f14d9cf4c9662ff5cb1848aac6523269efd5940a | |
parent | a768c2bd77cf724c5a09f27d41d453ab5fbd6ae8 (diff) | |
download | extra-cmake-modules-180eea9f858006ad5c000a5f48f431a735dc7004.tar.gz extra-cmake-modules-180eea9f858006ad5c000a5f48f431a735dc7004.tar.bz2 |
don't create the buildtests target for the MSVC IDE
it's not needed and creates errors
svn path=/trunk/KDE/kdelibs/; revision=696838
-rw-r--r-- | modules/KDE4Macros.cmake | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/modules/KDE4Macros.cmake b/modules/KDE4Macros.cmake index 1d92101a..6e4dbcb4 100644 --- a/modules/KDE4Macros.cmake +++ b/modules/KDE4Macros.cmake @@ -711,15 +711,17 @@ macro (KDE4_ADD_UNIT_TEST _test_NAME) kde4_add_test_executable( ${_test_NAME} ${_srcList} ) add_test( ${_targetName} ${EXECUTABLE_OUTPUT_PATH}/${_test_NAME} ) - # if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests - if (NOT KDE4_BUILD_TESTS) - get_directory_property(_buildtestsAdded BUILDTESTS_ADDED) - if(NOT _buildtestsAdded) - add_custom_target(buildtests) - set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE) - endif(NOT _buildtestsAdded) - add_dependencies(buildtests ${_test_NAME}) - endif (NOT KDE4_BUILD_TESTS) + if (NOT MSVC_IDE) #not needed for the ide + # if the tests are EXCLUDE_FROM_ALL, add a target "buildtests" to build all tests + if (NOT KDE4_BUILD_TESTS) + get_directory_property(_buildtestsAdded BUILDTESTS_ADDED) + if(NOT _buildtestsAdded) + add_custom_target(buildtests) + set_directory_properties(PROPERTIES BUILDTESTS_ADDED TRUE) + endif(NOT _buildtestsAdded) + add_dependencies(buildtests ${_test_NAME}) + endif (NOT KDE4_BUILD_TESTS) + endif (NOT MSVC_IDE) endmacro (KDE4_ADD_UNIT_TEST) |