mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 03:18:46 +00:00
Handle error on uninitialized plog submodule
Fail cmake configuration if plog submodule is not initialized.
This commit is contained in:
parent
ad33f3d79f
commit
2b396d2d87
4
third_party/CMakeLists.txt
vendored
4
third_party/CMakeLists.txt
vendored
@ -6,5 +6,9 @@ add_subdirectory(stb)
|
||||
if(USE_EXTERNAL_PLOG)
|
||||
find_package(plog REQUIRED)
|
||||
else()
|
||||
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/plog/CMakeLists.txt)
|
||||
message(FATAL_ERROR "plog third-party directory could not be found. "
|
||||
"Please run 'submodule update --init --recursive' in the source directory.")
|
||||
endif()
|
||||
add_subdirectory(plog)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user