Commit 2081dcbf authored by Bill Hoffman's avatar Bill Hoffman
Browse files

ENH: add get_test_property to bootstrap so bootstrap builds test the same as non-bootstrap builds

parent 9a3c0bf0
......@@ -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<cmCommand*>& 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);
......
......@@ -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<cmCommand*>&
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);
......
......@@ -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?
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment