aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-05 12:48:47 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2018-10-05 12:48:47 +0200
commit4c35f24ef463a2124395a8a6eb2c23e3c568e067 (patch)
tree80afb5f2dac739e34b25acb0ae3a6156728087b0 /tests
parent7a7d5643f95311ec3149bb0d76feacff6219001f (diff)
CMake: suppress MSVC warning C4127 for libtest
It's issued by older Windows SDKs (prior to version 8.0).
Diffstat (limited to 'tests')
-rw-r--r--tests/libtest/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/libtest/CMakeLists.txt b/tests/libtest/CMakeLists.txt
index 6b14ad3e3..aa70d053d 100644
--- a/tests/libtest/CMakeLists.txt
+++ b/tests/libtest/CMakeLists.txt
@@ -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)