Set nlohmann_json_schema_validator_IS_TOP_LEVEL

Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
Cristian Le 2023-11-28 09:48:10 +01:00
parent 2982d02c14
commit 3a24ab3c0c

View File

@ -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 ()