Skip to content

Commit

Permalink
Merge pull request #652 from olegendo/develop
Browse files Browse the repository at this point in the history
Rename BuildTests to JSON_BuildTests
  • Loading branch information
nlohmann authored Jul 15, 2017
2 parents f1fabd1 + cd80052 commit 8a9133c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ project(nlohmann_json VERSION 2.1.1 LANGUAGES CXX)

enable_testing()

option(BuildTests "Build the unit tests" ON)
option(JSON_BuildTests "Build the unit tests" ON)

# define project variables
set(JSON_TARGET_NAME ${PROJECT_NAME})
Expand All @@ -25,7 +25,7 @@ target_include_directories(${JSON_TARGET_NAME} INTERFACE
$<INSTALL_INTERFACE:${JSON_INCLUDE_DESTINATION}>)

# create and configure the unit test target
if(BuildTests)
if(JSON_BuildTests)
add_subdirectory(test)
endif()

Expand Down

0 comments on commit 8a9133c

Please sign in to comment.