Bläddra i källkod

Better error message tells user possible ways to resolve the error.

David Cole 16 år sedan
förälder
incheckning
cba1dd59fd
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Modules/ExternalProject.cmake

+ 1 - 1
Modules/ExternalProject.cmake

@@ -673,7 +673,7 @@ function(_ep_add_download_command name)
       list(APPEND cmd ${CMAKE_COMMAND} -P ${stamp_dir}/extract-${name}.cmake)
     endif()
   else()
-    message(SEND_ERROR "error: no download info for '${name}'")
+    message(SEND_ERROR "error: no download info for '${name}' -- please specify existing SOURCE_DIR or one of URL, CVS_REPOSITORY and CVS_MODULE, SVN_REPOSITORY or DOWNLOAD_COMMAND")
   endif()
 
   ExternalProject_Add_Step(${name} download