Browse Source

ENH: Added undocumented option -E cmake_unimplemented_variable to help print useful error messages for unimplemented features on a given platform.

Brad King 19 năm trước cách đây
mục cha
commit
accf93fc12
1 tập tin đã thay đổi với 12 bổ sung0 xóa
  1. 12 0
      Source/cmake.cxx

+ 12 - 0
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")