1
0
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:
Marcel Raad 2018-10-05 12:48:47 +02:00
parent 7a7d5643f9
commit 4c35f24ef4
No known key found for this signature in database
GPG Key ID: 07ADACB610D796DA

View File

@ -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)