diff --git a/CMakeLists.txt b/CMakeLists.txt index c0035a2..a0beae0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -30,8 +30,10 @@ project(nlohmann_json_schema_validator if (NOT DEFINED nlohmann_json_schema_validator_IS_TOP_LEVEL) if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME) set(PROJECT_IS_TOP_LEVEL ON) + set(nlohmann_json_schema_validator_IS_TOP_LEVEL ON) else () set(PROJECT_IS_TOP_LEVEL OFF) + set(nlohmann_json_schema_validator_IS_TOP_LEVEL OFF) endif () endif ()