mirror of
https://github.com/moparisthebest/curl
synced 2024-12-23 08:38:49 -05:00
CMake: suppress MSVC warning C4127 for libtest
It's issued by older Windows SDKs (prior to version 8.0).
This commit is contained in:
parent
7a7d5643f9
commit
4c35f24ef4
@ -1,5 +1,9 @@
|
||||
set(TARGET_LABEL_PREFIX "Test ")
|
||||
|
||||
if(MSVC)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /wd4127")
|
||||
endif()
|
||||
|
||||
function(setup_test TEST_NAME) # ARGN are the files in the test
|
||||
add_executable( ${TEST_NAME} ${ARGN} )
|
||||
string(TOUPPER ${TEST_NAME} UPPER_TEST_NAME)
|
||||
|
Loading…
Reference in New Issue
Block a user