Skip to content

Commit

Permalink
🔧 guard tests with JSON_Install flag
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Aug 18, 2021
1 parent f42a74b commit 54d9cd5
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 54d9cd5

Please sign in to comment.