From 3a24ab3c0c8e3fae4dd8fb7b32547d81218ffbbc Mon Sep 17 00:00:00 2001 From: Cristian Le Date: Tue, 28 Nov 2023 09:48:10 +0100 Subject: [PATCH] Set `nlohmann_json_schema_validator_IS_TOP_LEVEL` Signed-off-by: Cristian Le --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) 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 ()