From 2081dcbfce7245a1c19ec1e5fb9f0a7a3780aa30 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Mon, 7 Jul 2008 15:07:54 -0400 Subject: [PATCH] ENH: add get_test_property to bootstrap so bootstrap builds test the same as non-bootstrap builds --- Source/cmBootstrapCommands.cxx | 2 ++ Source/cmCommands.cxx | 2 -- Tests/CMakeLists.txt | 10 ---------- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/Source/cmBootstrapCommands.cxx b/Source/cmBootstrapCommands.cxx index bdc9e3b778..b8031fccac 100644 --- a/Source/cmBootstrapCommands.cxx +++ b/Source/cmBootstrapCommands.cxx @@ -86,6 +86,7 @@ #include "cmSetSourceFilesPropertiesCommand.cxx" #include "cmSetTargetPropertiesCommand.cxx" #include "cmSetTestsPropertiesCommand.cxx" +#include "cmGetTestPropertyCommand.cxx" #include "cmSiteNameCommand.cxx" #include "cmStringCommand.cxx" #include "cmSubdirCommand.cxx" @@ -154,6 +155,7 @@ void GetBootstrapCommands(std::list& commands) commands.push_back(new cmSetPropertyCommand); commands.push_back(new cmSetSourceFilesPropertiesCommand); commands.push_back(new cmSetTargetPropertiesCommand); + commands.push_back(new cmGetTestPropertyCommand); commands.push_back(new cmSetTestsPropertiesCommand); commands.push_back(new cmSiteNameCommand); commands.push_back(new cmStringCommand); diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx index d719d5528c..d9a9855417 100644 --- a/Source/cmCommands.cxx +++ b/Source/cmCommands.cxx @@ -24,7 +24,6 @@ #include "cmExportCommand.cxx" #include "cmExportLibraryDependencies.cxx" #include "cmFLTKWrapUICommand.cxx" -#include "cmGetTestPropertyCommand.cxx" #include "cmIncludeExternalMSProjectCommand.cxx" #include "cmInstallProgramsCommand.cxx" #include "cmLinkLibrariesCommand.cxx" @@ -66,7 +65,6 @@ void GetPredefinedCommands(std::list& commands.push_back(new cmExportCommand); commands.push_back(new cmExportLibraryDependenciesCommand); commands.push_back(new cmFLTKWrapUICommand); - commands.push_back(new cmGetTestPropertyCommand); commands.push_back(new cmIncludeExternalMSProjectCommand); commands.push_back(new cmInstallProgramsCommand); commands.push_back(new cmLinkLibrariesCommand); diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 472e2b3ac9..f2601c8417 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -12,16 +12,6 @@ MACRO(ADD_TEST_MACRO NAME COMMAND) --test-command ${COMMAND}) ENDMACRO(ADD_TEST_MACRO) -# Support bootstrap builds. When CMake 2.6 is required we can switch -# to using the get_property command which is in bootstrap. Note that -# that command will return empty instead of NOTFOUND if the property -# is not set. -IF(NOT COMMAND GET_TEST_PROPERTY) - MACRO(GET_TEST_PROPERTY test prop var) - SET(${var} "") - ENDMACRO(GET_TEST_PROPERTY) -ENDIF(NOT COMMAND GET_TEST_PROPERTY) - # Testing IF(BUILD_TESTING) # Should the long tests be run?