aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2014-01-22 15:50:40 +0100
committerAndreas Schneider <asn@cryptomilk.org>2014-01-22 15:50:40 +0100
commitdff5afdd18ac73b7a4055bab3fad1bc59fa30056 (patch)
treecf7c81a4061b4226813419a6756fb5ad6049bdd3 /example
parent3770c5dc8f0718d849eb1d73c29c0b33db253c49 (diff)
downloadcmocka-dff5afdd18ac73b7a4055bab3fad1bc59fa30056.tar.gz
cmocka-dff5afdd18ac73b7a4055bab3fad1bc59fa30056.tar.xz
cmocka-dff5afdd18ac73b7a4055bab3fad1bc59fa30056.zip
cmake: Do not build the chef_wrap example on OSX.
Diffstat (limited to 'example')
-rw-r--r--example/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/example/CMakeLists.txt b/example/CMakeLists.txt
index 84c93b6..9e0889e 100644
--- a/example/CMakeLists.txt
+++ b/example/CMakeLists.txt
@@ -79,6 +79,7 @@ set_tests_properties(
"\\[ FAILED \\] 2 test"
)
-if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)")
+# TODO Execute "$CMAKE_LINKER --help" and check for --wrap
+if (${CMAKE_C_COMPILER_ID} MATCHES "(GNU|Clang)" AND NOT APPLE)
add_subdirectory(chef_wrap)
endif()