summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2015-02-10 14:05:37 (GMT)
committerAndreas Schneider <asn@cryptomilk.org>2015-02-10 14:49:30 (GMT)
commita006e2e9a5773f1fdbdf4920621769833e00fe46 (patch)
tree97bdcb84716b317ff0221d7b55aab491b6ac8e37
parent1e0d8fa050a78d2ee00860325a2582a575aedb3f (diff)
downloadcmocka-a006e2e9a5773f1fdbdf4920621769833e00fe46.zip
cmocka-a006e2e9a5773f1fdbdf4920621769833e00fe46.tar.gz
cmocka-a006e2e9a5773f1fdbdf4920621769833e00fe46.tar.bz2
cmake: Turn off deprecated warning for test_cmockery.c
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--tests/CMakeLists.txt7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index f62f6e4..51ee04f 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -16,13 +16,16 @@ set(CMOCKA_TESTS
test_exception_handler
test_basics
test_skip
- test_setup_fail
- test_cmockery)
+ test_setup_fail)
foreach(_CMOCKA_TEST ${CMOCKA_TESTS})
add_cmocka_test(${_CMOCKA_TEST} ${_CMOCKA_TEST}.c ${CMOCKA_SHARED_LIBRARY})
endforeach()
+### Special Cases
+set_source_files_properties(test_cmockery.c PROPERTIES COMPILE_FLAGS "-Wno-deprecated-declarations")
+add_cmocka_test(test_cmockery test_cmockery.c ${CMOCKA_SHARED_LIBRARY})
+
### Exceptions
# test_assert_macros_fail