Set MAIN_PROJECT=OFF initially

This commit is contained in:
Martin Stump 2020-12-09 12:39:44 +01:00
parent 5c589dd138
commit 790508887e
No known key found for this signature in database
GPG Key ID: 0C0026DF78FB33D2

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