Merge pull request #2947 from nlohmann/issue2946
Skip some tests if JSON_Install is not set
This commit is contained in:
commit
5a04042cad
@ -104,8 +104,12 @@ endif()
|
|||||||
# Test the generated build configs
|
# Test the generated build configs
|
||||||
#############################################################################
|
#############################################################################
|
||||||
|
|
||||||
|
# these tests depend on the generated file nlohmann_jsonConfig.cmake
|
||||||
|
if (JSON_Install)
|
||||||
add_subdirectory(cmake_import)
|
add_subdirectory(cmake_import)
|
||||||
add_subdirectory(cmake_import_minver)
|
add_subdirectory(cmake_import_minver)
|
||||||
|
endif()
|
||||||
|
|
||||||
add_subdirectory(cmake_add_subdirectory)
|
add_subdirectory(cmake_add_subdirectory)
|
||||||
add_subdirectory(cmake_fetch_content)
|
add_subdirectory(cmake_fetch_content)
|
||||||
add_subdirectory(cmake_target_include_directories)
|
add_subdirectory(cmake_target_include_directories)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user