Unverified Commit 5a04042c authored by Niels Lohmann's avatar Niels Lohmann Committed by GitHub

Merge pull request #2947 from nlohmann/issue2946

Skip some tests if JSON_Install is not set
parents f8bc22c7 54d9cd5a
......@@ -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)
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