From 915cbbcf1d795b8c435537e5b38ccf10c60a6a3a Mon Sep 17 00:00:00 2001 From: Lalit Date: Tue, 19 Oct 2021 10:07:15 -0700 Subject: [PATCH] add explicit check for submodule --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 55b95d6911..20e7d61cca 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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