summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-07 21:22:58 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-07 21:22:58 (GMT)
commitaccf93fc12071b603de40a00d059a2bbbe7f2fe2 (patch)
tree8137886a7aa712d5f2faa3d4701d12e6196a5bee /Source
parentbba6583942ea78ba3ce9ad3f835f025d8a8e6c71 (diff)
downloadCMake-accf93fc12071b603de40a00d059a2bbbe7f2fe2.zip
CMake-accf93fc12071b603de40a00d059a2bbbe7f2fe2.tar.gz
CMake-accf93fc12071b603de40a00d059a2bbbe7f2fe2.tar.bz2
ENH: Added undocumented option -E cmake_unimplemented_variable to help print useful error messages for unimplemented features on a given platform.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmake.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index aaa743f..3afbf67 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -1184,6 +1184,18 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
return cmake::ExecuteLinkScript(args);
}
+ // Internal CMake unimplemented feature notification.
+ else if (args[1] == "cmake_unimplemented_variable")
+ {
+ std::cerr << "Feature not implemented for this platform.";
+ if(args.size() == 3)
+ {
+ std::cerr << " Variable " << args[2] << " is not set.";
+ }
+ std::cerr << std::endl;
+ return 1;
+ }
+
#ifdef CMAKE_BUILD_WITH_CMAKE
// Internal CMake color makefile support.
else if (args[1] == "cmake_echo_color")