mirror of
https://github.com/nlohmann/json.git
synced 2026-03-06 09:16:25 +00:00
🔧 guard tests with JSON_Install flag
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user