diff options
author | Vojtech Kral <vojtech@kral.hk> | 2019-01-24 13:30:29 +0300 |
---|---|---|
committer | Vojtech Kral <vojtech@kral.hk> | 2019-01-24 22:03:12 +0300 |
commit | d1c569dd5708811ed472c8780e325b6750e4b10a (patch) | |
tree | b57233952d86447eef741ed395caa94497b13c01 /CMakeLists.txt | |
parent | 28f1a6f2561d915443e20b7e8e911d8821be4c69 (diff) |
Mac: Implement Retina for the 3D scene, fix #97
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index fd8a27e86..c4e599f36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -169,6 +169,11 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU" OR "${CMAKE_CXX_COMPILER_ID}" STRE endif () endif() +if (APPLE) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror=partial-availability -Werror=unguarded-availability -Werror=unguarded-availability-new") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=partial-availability -Werror=unguarded-availability -Werror=unguarded-availability-new") +endif () + # Where all the bundled libraries reside? set(LIBDIR ${CMAKE_CURRENT_SOURCE_DIR}/src) set(LIBDIR_BIN ${CMAKE_CURRENT_BINARY_DIR}/src) |