From accf93fc12071b603de40a00d059a2bbbe7f2fe2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 7 Aug 2006 17:22:58 -0400 Subject: ENH: Added undocumented option -E cmake_unimplemented_variable to help print useful error messages for unimplemented features on a given platform. --- Source/cmake.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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& 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") -- cgit v0.12