🔧 guard tests with JSON_Install flag

pull/2947/head
Niels Lohmann 2021-08-18 13:24:12 +02:00
parent f42a74b8f5
commit 54d9cd5a12
No known key found for this signature in database
GPG Key ID: 7F3CEA63AE251B69
1 changed files with 6 additions and 2 deletions

View File

@ -115,8 +115,12 @@ add_dependencies(json_unit download_test_data)
# Test the generated build configs
#############################################################################
add_subdirectory(cmake_import)
add_subdirectory(cmake_import_minver)
# these tests depend on the generated file nlohmann_jsonConfig.cmake
if (JSON_Install)
add_subdirectory(cmake_import)
add_subdirectory(cmake_import_minver)
endif()
add_subdirectory(cmake_add_subdirectory)
add_subdirectory(cmake_fetch_content)
add_subdirectory(cmake_target_include_directories)