mirror of
https://github.com/curl/curl.git
synced 2026-06-10 00:24:17 +03:00
cm fixup
This commit is contained in:
parent
9eb1434b00
commit
eb4e5fb0ab
1 changed files with 5 additions and 5 deletions
|
|
@ -32,12 +32,12 @@ set(_all "all")
|
|||
foreach(_target IN LISTS check_PROGRAMS _all)
|
||||
set(_target_name "curl-example-${_target}")
|
||||
if(_target STREQUAL "all")
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.12)
|
||||
set(_example_c "${check_PROGRAMS}")
|
||||
list(TRANSFORM _example_c APPEND ".c")
|
||||
add_library(${_target_name} OBJECT EXCLUDE_FROM_ALL ${_example_c})
|
||||
message(STATUS "|${_example_c}|")
|
||||
if(CMAKE_VERSION VERSION_LESS 3.12)
|
||||
continue()
|
||||
endif()
|
||||
set(_example_c "${check_PROGRAMS}")
|
||||
list(TRANSFORM _example_c APPEND ".c")
|
||||
add_library(${_target_name} OBJECT EXCLUDE_FROM_ALL ${_example_c})
|
||||
else()
|
||||
set(_onetest ${_target_name}) # ends with a single, existing test for curl-examples-build target
|
||||
add_executable(${_target_name} EXCLUDE_FROM_ALL "${_target}.c")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue