Skip to content

Commit

Permalink
add explicit check for submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitb committed Oct 19, 2021
1 parent d00f250 commit 915cbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ if((NOT WITH_API_ONLY)
set(JSON_Install
ON
CACHE INTERNAL "")
if(EXISTS ${PROJECT_SOURCE_DIR}/third_party/nlohmann-json)
if(EXISTS ${PROJECT_SOURCE_DIR}/third_party/nlohmann-json/CMakeLists.txt)
# This option allows to link nlohmann_json::nlohmann_json target
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/nlohmann-json)
# This option allows to add header to include directories
Expand Down

0 comments on commit 915cbbc

Please sign in to comment.