aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2018-08-22 12:52:20 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-08-22 13:02:28 +0200
commitc49a7bc032c751095bc8cc24c6e54887c059866a (patch)
treee8b246900874353e8776c9e5891088ebfd39042d /example
parentb8cf442fb82b720161a9c5b1551c3bd6482f5a75 (diff)
downloadcmocka-c49a7bc032c751095bc8cc24c6e54887c059866a.tar.gz
cmocka-c49a7bc032c751095bc8cc24c6e54887c059866a.tar.xz
cmocka-c49a7bc032c751095bc8cc24c6e54887c059866a.zip
cmake: Add new CompilerCheck.cmake
Diffstat (limited to 'example')
-rw-r--r--example/uptime/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/example/uptime/CMakeLists.txt b/example/uptime/CMakeLists.txt
index 4f73d88..99924bd 100644
--- a/example/uptime/CMakeLists.txt
+++ b/example/uptime/CMakeLists.txt
@@ -7,9 +7,11 @@ include_directories(
add_library(proc_uptime proc_uptime.c)
add_executable(uptime uptime.c)
+target_compile_options(uptime PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_link_libraries(uptime proc_uptime)
add_executable(test_uptime test_uptime.c)
+target_compile_options(test_uptime PRIVATE ${DEFAULT_C_COMPILE_FLAGS})
target_link_libraries(test_uptime ${CMOCKA_SHARED_LIBRARY})
set_target_properties(test_uptime