Skip to content

Commit

Permalink
Merge pull request #2947 from nlohmann/issue2946
Browse files Browse the repository at this point in the history
Skip some tests if JSON_Install is not set
  • Loading branch information
nlohmann committed Aug 18, 2021
2 parents f8bc22c + 54d9cd5 commit 5a04042
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 @@ -104,8 +104,12 @@ endif()
# 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 5a04042

Please sign in to comment.