fixup for old cmake

This commit is contained in:
Viktor Szakats 2025-08-06 22:48:07 +02:00
parent ad5db52792
commit e70c989471
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -49,6 +49,8 @@ foreach(_target IN LISTS check_PROGRAMS _all)
set_target_properties(${_target_name} PROPERTIES OUTPUT_NAME "${_target}" PROJECT_LABEL "Example ${_target}" UNITY_BUILD OFF)
endforeach()
# Special target to compile all tests quickly and build a single test to probe linkage
add_custom_target(curl-examples-build)
add_dependencies(curl-examples-build curl-example-all "${_onetest}")
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
# Special target to compile all tests quickly and build a single test to probe linkage
add_custom_target(curl-examples-build)
add_dependencies(curl-examples-build curl-example-all "${_onetest}")
endif()