Commit c136b6f2 authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #666 from effolkronium/develop

enable_testing only if the JSON_BuildTests is ON
parents 7d512140 a27dd3a6
......@@ -3,8 +3,6 @@ cmake_minimum_required(VERSION 3.0)
# define the project
project(nlohmann_json VERSION 2.1.1 LANGUAGES CXX)
enable_testing()
option(JSON_BuildTests "Build the unit tests" ON)
# define project variables
......@@ -26,6 +24,7 @@ target_include_directories(${JSON_TARGET_NAME} INTERFACE
# create and configure the unit test target
if(JSON_BuildTests)
enable_testing()
add_subdirectory(test)
endif()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment