CMake: Throw a more descriptive error when submodule files do not exist
Instead of having a long list of files that cannot be found, create an error message that mentions that the git submodule should be checked out.
This commit is contained in:
parent
590e033344
commit
966c39802e
1 changed files with 6 additions and 0 deletions
|
|
@ -593,6 +593,12 @@ endfunction()
|
|||
function(wx_add_builtin_library name)
|
||||
wx_list_add_prefix(src_list "${wxSOURCE_DIR}/" ${ARGN})
|
||||
|
||||
list(GET src_list 0 src_file)
|
||||
if(NOT EXISTS "${src_file}")
|
||||
message(FATAL_ERROR "${name} file does not exist: \"${src_file}\".\
|
||||
Make sure you checkout the git submodules.")
|
||||
endif()
|
||||
|
||||
if(${name} MATCHES "wx.*")
|
||||
string(SUBSTRING ${name} 2 -1 name_short)
|
||||
else()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue