summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-08-30 14:43:52 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-08-30 14:44:36 (GMT)
commit2df8dbcdf26f6301d4c23e0988d6e4ebe3b7cae5 (patch)
treea0ac5ef6407cb8c8af9d6c754a56c51f028804b6 /Source/cmakemain.cxx
parentc23481d051569102b0ffa8f3300596d10b6d74ec (diff)
parent18454ea44d6a1fd2dbc613ad9c3fe941639563aa (diff)
downloadCMake-2df8dbcdf26f6301d4c23e0988d6e4ebe3b7cae5.zip
CMake-2df8dbcdf26f6301d4c23e0988d6e4ebe3b7cae5.tar.gz
CMake-2df8dbcdf26f6301d4c23e0988d6e4ebe3b7cae5.tar.bz2
Merge topic 'fix-find-package-mode'
18454ea4 cmake: Fix --find-package mode with imported targets Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1208
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index d4e1925..e6f88a7 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -299,7 +299,7 @@ int do_cmake(int ac, char const* const* av)
return ret;
}
cmake::Role const role =
- workingMode == cmake::NORMAL_MODE ? cmake::RoleProject : cmake::RoleScript;
+ workingMode == cmake::SCRIPT_MODE ? cmake::RoleScript : cmake::RoleProject;
cmake cm(role);
cm.SetHomeDirectory("");
cm.SetHomeOutputDirectory("");