1c5f01b2fSopenharmony_ciif (${CMAKE_VERSION} VERSION_GREATER "3.11.0")
2c5f01b2fSopenharmony_ci  add_test(NAME cmake_fetch_content_configure
3c5f01b2fSopenharmony_ci    COMMAND ${CMAKE_COMMAND}
4c5f01b2fSopenharmony_ci    -G "${CMAKE_GENERATOR}"
5c5f01b2fSopenharmony_ci    -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
6c5f01b2fSopenharmony_ci    -Dnlohmann_json_source=${PROJECT_SOURCE_DIR}
7c5f01b2fSopenharmony_ci    ${CMAKE_CURRENT_SOURCE_DIR}/project
8c5f01b2fSopenharmony_ci  )
9c5f01b2fSopenharmony_ci  add_test(NAME cmake_fetch_content_build
10c5f01b2fSopenharmony_ci    COMMAND ${CMAKE_COMMAND} --build .
11c5f01b2fSopenharmony_ci  )
12c5f01b2fSopenharmony_ci  set_tests_properties(cmake_fetch_content_configure PROPERTIES
13c5f01b2fSopenharmony_ci    FIXTURES_SETUP cmake_fetch_content
14c5f01b2fSopenharmony_ci    LABELS "git_required;not_reproducible"
15c5f01b2fSopenharmony_ci  )
16c5f01b2fSopenharmony_ci  set_tests_properties(cmake_fetch_content_build PROPERTIES
17c5f01b2fSopenharmony_ci    FIXTURES_REQUIRED cmake_fetch_content
18c5f01b2fSopenharmony_ci    LABELS "git_required;not_reproducible"
19c5f01b2fSopenharmony_ci  )
20c5f01b2fSopenharmony_ciendif()
21