aboutsummaryrefslogtreecommitdiff
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-11 18:09:55 +0100
committerAndreas Schneider <asn@cryptomilk.org>2015-02-11 18:11:11 +0100
commitf7a55ba7805b6f41c640e86f33394bbe48d595e5 (patch)
treed9ec956f02dc389dce581464ae2997a239708228 /tests/CMakeLists.txt
parent609d21b6293991743f9218037033412661147156 (diff)
downloadcmocka-f7a55ba7805b6f41c640e86f33394bbe48d595e5.tar.gz
cmocka-f7a55ba7805b6f41c640e86f33394bbe48d595e5.tar.xz
cmocka-f7a55ba7805b6f41c640e86f33394bbe48d595e5.zip
cmake: Do not set gcc flags in VC.
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 51ee04f..1be4867 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -23,7 +23,9 @@ foreach(_CMOCKA_TEST ${CMOCKA_TESTS})
endforeach()
### Special Cases
-set_source_files_properties(test_cmockery.c PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations")
+if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
+ set_source_files_properties(test_cmockery.c PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations")
+endif()
add_cmocka_test(test_cmockery test_cmockery.c ${CMOCKA_SHARED_LIBRARY})
### Exceptions