diff options
author | William Woodall <william@osrfoundation.org> | 2014-04-22 11:01:31 +0400 |
---|---|---|
committer | William Woodall <william@osrfoundation.org> | 2014-04-22 11:01:31 +0400 |
commit | 5ff7a4c0b617a81da90b4a3fe154ba369b9e257a (patch) | |
tree | 8f06429931bb1c3b536940b26b12de384e0912f1 /samples | |
parent | 97a4d8b1dce19d4b104e38231c4ab724f48d876a (diff) |
the 10.9 compiler chokes on -freg-struct-return
Diffstat (limited to 'samples')
-rw-r--r-- | samples/CMakeLists.txt | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index a5bd3f5..e123f37 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -10,6 +10,8 @@ INCLUDE_DIRECTORIES(..) if(MSVC) add_definitions(-W4 -WX) +elseif(APPLE) + add_definitions(-fsigned-char -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Winline -Werror) else() add_definitions(-fsigned-char -freg-struct-return -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Winline -Werror) endif() |