Unverified Commit 4c35f24e authored by Marcel Raad's avatar Marcel Raad
Browse files

CMake: suppress MSVC warning C4127 for libtest

It's issued by older Windows SDKs (prior to version 8.0).
parent 7a7d5643
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
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)