mirror of
https://github.com/nlohmann/json.git
synced 2024-08-23 05:22:28 +02:00
Merge pull request #652 from olegendo/develop
Rename BuildTests to JSON_BuildTests
This commit is contained in:
commit
8a9133c6b2
|
@ -5,7 +5,7 @@ project(nlohmann_json VERSION 2.1.1 LANGUAGES CXX)
|
||||||
|
|
||||||
enable_testing()
|
enable_testing()
|
||||||
|
|
||||||
option(BuildTests "Build the unit tests" ON)
|
option(JSON_BuildTests "Build the unit tests" ON)
|
||||||
|
|
||||||
# define project variables
|
# define project variables
|
||||||
set(JSON_TARGET_NAME ${PROJECT_NAME})
|
set(JSON_TARGET_NAME ${PROJECT_NAME})
|
||||||
|
@ -25,7 +25,7 @@ target_include_directories(${JSON_TARGET_NAME} INTERFACE
|
||||||
$<INSTALL_INTERFACE:${JSON_INCLUDE_DESTINATION}>)
|
$<INSTALL_INTERFACE:${JSON_INCLUDE_DESTINATION}>)
|
||||||
|
|
||||||
# create and configure the unit test target
|
# create and configure the unit test target
|
||||||
if(BuildTests)
|
if(JSON_BuildTests)
|
||||||
add_subdirectory(test)
|
add_subdirectory(test)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue