# SPDX-License-Identifier: curl
#
###########################################################################
-set(EXE_NAME curl)
+
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "${CURL_DEBUG_MACROS}")
set(_curl_cfiles_gen "")
# This avoids: GNU Make doing a slow re-evaluation of all targets and
# skipping them, MSBuild doing a re-evaluation, and actually rebuilding them.
if(NOT _targetname STREQUAL "test-ci")
- set(_depends "testdeps")
+ if(BUILD_CURL_EXE)
+ list(APPEND _depends ${EXE_NAME})
+ endif()
+ list(APPEND _depends "testdeps")
endif()
# Use a special '$TFLAGS' placeholder as last argument which will be
# replaced by the contents of the environment variable in runtests.pl.
function(curl_add_pytests _targetname _test_flags)
set(_depends "")
if(NOT _targetname STREQUAL "pytest-ci")
- set(_depends "clients")
+ if(BUILD_CURL_EXE)
+ list(APPEND _depends ${EXE_NAME})
+ endif()
+ list(APPEND _depends "clients")
endif()
string(REPLACE " " ";" _test_flags_list "${_test_flags}")
add_custom_target(${_targetname}