summaryrefslogtreecommitdiff
path: root/Source/CTest/cmCTestBuildAndTestHandler.cxx
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-01-17 12:02:11 -0500
committerKyle Edwards <kyle.edwards@kitware.com>2019-01-18 10:15:25 -0500
commit264bdac185f85e0508982df1b6efd7c3b8a1d1a4 (patch)
tree0488fc03bcad00b4cb2db868f08e8977b32030f8 /Source/CTest/cmCTestBuildAndTestHandler.cxx
parent68e20f674a48be38d60e129f600faf7c483f2b97 (diff)
downloadcmake-264bdac185f85e0508982df1b6efd7c3b8a1d1a4.tar.gz
CMAKE_ROLE: Fix value for ctest --build-and-test
--build-and-test builds a CMake project, so CMAKE_ROLE should be PROJECT. Fix this and add a test case.
Diffstat (limited to 'Source/CTest/cmCTestBuildAndTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestBuildAndTestHandler.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/CTest/cmCTestBuildAndTestHandler.cxx b/Source/CTest/cmCTestBuildAndTestHandler.cxx
index d49fba22c8..9f4554510d 100644
--- a/Source/CTest/cmCTestBuildAndTestHandler.cxx
+++ b/Source/CTest/cmCTestBuildAndTestHandler.cxx
@@ -164,7 +164,7 @@ int cmCTestBuildAndTestHandler::RunCMakeAndTest(std::string* outstring)
return 1;
}
- cmake cm(cmake::RoleProject, cmState::CTest);
+ cmake cm(cmake::RoleProject, cmState::Project);
cm.SetHomeDirectory("");
cm.SetHomeOutputDirectory("");
std::string cmakeOutString;