1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

Set MAIN_PROJECT=OFF initially

This commit is contained in:
Martin Stump
2020-12-09 12:39:44 +01:00
parent 5c589dd138
commit 790508887e

View File

@ -9,6 +9,7 @@ project(nlohmann_json VERSION 3.9.1 LANGUAGES CXX)
##
## MAIN_PROJECT CHECK
##
set(MAIN_PROJECT OFF)
if (CMAKE_SOURCE_DIR STREQUAL PROJECT_SOURCE_DIR)
set(MAIN_PROJECT ON)
endif()