mirror of
https://github.com/curl/curl.git
synced 2026-08-24 12:33:37 +03:00
tests: switch to target_compile_definitions()
This commit is contained in:
parent
666c87313a
commit
ba4db300a4
5 changed files with 5 additions and 5 deletions
|
|
@ -44,7 +44,7 @@ target_include_directories(${BUNDLE} PRIVATE
|
|||
"${PROJECT_SOURCE_DIR}/tests/libtest" # for "first.h", "unitcheck.h"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}" # for the generated bundle source to find included test sources
|
||||
)
|
||||
set_property(TARGET ${BUNDLE} APPEND PROPERTY COMPILE_DEFINITIONS ${CURL_DEBUG_MACROS} "CURL_NO_OLDIES" "CURL_DISABLE_DEPRECATION"
|
||||
target_compile_definitions(TARGET ${BUNDLE} PRIVATE ${CURL_DEBUG_MACROS} "CURL_NO_OLDIES" "CURL_DISABLE_DEPRECATION"
|
||||
"BUILDING_LIBCURL" # unit tests are small pretend-libcurl-programs
|
||||
)
|
||||
set_target_properties(${BUNDLE} PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF C_CLANG_TIDY "")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue