summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index be32840..932aab9 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -162,6 +162,12 @@ int do_cmake(int ac, char** av)
}
return result;
}
+#else
+ if ( nocwd || ac == 1 )
+ {
+ std::cout << "Bootstrap CMake should not be used outside CMake build process." << std::endl;
+ return 0;
+ }
#endif
bool wiz = false;