cmake: -W flags only for GCC and Clang

This commit is contained in:
Manuel Pégourié-Gonnard 2015-07-01 13:41:35 +02:00
parent 052f28853b
commit 7e2d68c1b2

View file

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