diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 53ff81de1a..1990faffef 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -221,7 +221,7 @@ endif() if(GLTF_SUPPORT OR CITYJSON_SUPPORT) UNIFY_ENVVARS_AND_CACHE(JSON_INCLUDE_DIR) - find_path(json_header_path "json.hpp" HINTS ${JSON_INCLUDE_DIR} PATH_SUFFIXES "nlohmann") + find_path(json_header_path "nlohmann/json.hpp" HINTS ${JSON_INCLUDE_DIR}) set(JSON_INCLUDE_DIR ${json_header_path}) if(json_header_path)