diff options
author | Stuart Dootson <u404261@methods.local> | 2019-10-14 14:30:06 +0100 |
---|---|---|
committer | Murray Cumming <murrayc@murrayc.com> | 2019-10-25 12:57:31 +0200 |
commit | e7d6878da2af809078cd867ff37e29448e507960 (patch) | |
tree | c546b034958d3f617c9a5cadc77e56885cb511dd | |
parent | b74406a54b844f41ec1dc5c535c4fa07336fc77d (diff) | |
download | sigc++-e7d6878da2af809078cd867ff37e29448e507960.tar.gz |
MSVC build: Disable C4244 (conversion, possible loss of data) for relevant tests
-rw-r--r-- | tests/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index a9e5670..36e728b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -64,6 +64,10 @@ function (add_sigcpp_test TEST_SOURCE_FILE) add_test (NAME ${test_name} # Help MSVC to find the library that the tests should link against. COMMAND ${CMAKE_COMMAND} -E env "PATH=$<TARGET_FILE_DIR:sigc-${SIGCXX_API_VERSION}>;$ENV{PATH}" $<TARGET_FILE:${test_name}>) + + if (MSVC AND test_name MATCHES "^(test_retype_return|test_signal)$") + target_compile_options(${test_name} PRIVATE "/wd4244") + endif() endfunction (add_sigcpp_test) foreach (test_file ${TEST_SOURCE_FILES}) |