ENH: Added undocumented option -E cmake_unimplemented_variable to help print useful error messages for unimplemented features on a given platform.
This commit is contained in:
parent
bba6583942
commit
accf93fc12
|
@ -1184,6 +1184,18 @@ int cmake::ExecuteCMakeCommand(std::vector<std::string>& args)
|
||||||
return cmake::ExecuteLinkScript(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
|
#ifdef CMAKE_BUILD_WITH_CMAKE
|
||||||
// Internal CMake color makefile support.
|
// Internal CMake color makefile support.
|
||||||
else if (args[1] == "cmake_echo_color")
|
else if (args[1] == "cmake_echo_color")
|
||||||
|
|
Loading…
Reference in New Issue