From 7e2d68c1b2b0889a9fa94c8c19b8dacf4751613a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr> Date: Wed, 1 Jul 2015 13:41:35 +0200 Subject: [PATCH] cmake: -W flags only for GCC and Clang --- tests/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 23d662df6..068d71518 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -29,7 +29,9 @@ function(add_test_suite suite_name) add_test(${data_name}-suite test_suite_${data_name}) endfunction(add_test_suite) -set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function") +if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-unused-function") +endif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_CLANG) add_test_suite(aes aes.ecb) add_test_suite(aes aes.cbc)