projects
/
platform
/
upstream
/
cmocka.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
609d21b
)
cmake: Do not set gcc flags in VC.
author
Andreas Schneider
<asn@cryptomilk.org>
Wed, 11 Feb 2015 17:09:55 +0000
(18:09 +0100)
committer
Andreas Schneider
<asn@cryptomilk.org>
Wed, 11 Feb 2015 17:11:11 +0000
(18:11 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
tests/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/tests/CMakeLists.txt
b/tests/CMakeLists.txt
index
51ee04f
..
1be4867
100644
(file)
--- 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