Skip to content

Commit

Permalink
Handle error on uninitialized plog submodule
Browse files Browse the repository at this point in the history
Fail cmake configuration if plog submodule is not initialized.
  • Loading branch information
winterheart committed Sep 3, 2024
1 parent 994495c commit 7e99ea7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions third_party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,9 @@ add_subdirectory(libacm)
add_subdirectory(stb)

if(NOT USE_SYSTEM_PLOG)
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()

0 comments on commit 7e99ea7

Please sign in to comment.