提交 43ce733e 编写于 作者: M Matt Pharr

Improve error message on missing submodule

上级 d2ffdf98
......@@ -30,7 +30,8 @@ endif ()
function (CHECK_EXT NAME DIR HASH)
if (NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/ext/${DIR}")
message (FATAL_ERROR "The ${NAME} submodule directory is missing! "
"You probably did not clone the project with --recursive. It is possible to recover by running:\n"
"Either that submodule was recently added to pbrt or you did not clone the project with --recursive. "
"In order to update the submodules, run:\n"
" \"git submodule update --init --recursive\"")
endif ()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册