Set nlohmann_json_schema_validator_IS_TOP_LEVEL
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
This commit is contained in:
parent
2982d02c14
commit
3a24ab3c0c
@ -30,8 +30,10 @@ project(nlohmann_json_schema_validator
|
|||||||
if (NOT DEFINED nlohmann_json_schema_validator_IS_TOP_LEVEL)
|
if (NOT DEFINED nlohmann_json_schema_validator_IS_TOP_LEVEL)
|
||||||
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
|
||||||
set(PROJECT_IS_TOP_LEVEL ON)
|
set(PROJECT_IS_TOP_LEVEL ON)
|
||||||
|
set(nlohmann_json_schema_validator_IS_TOP_LEVEL ON)
|
||||||
else ()
|
else ()
|
||||||
set(PROJECT_IS_TOP_LEVEL OFF)
|
set(PROJECT_IS_TOP_LEVEL OFF)
|
||||||
|
set(nlohmann_json_schema_validator_IS_TOP_LEVEL OFF)
|
||||||
endif ()
|
endif ()
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user