From 2d5bdc9d7211d68e619b9d255b46f551d50ef515 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 1 Jan 2014 13:53:17 +0100 Subject: fix rift build --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93e0b415..e6efa07d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -443,14 +443,18 @@ if(SDK_RIFT) include_directories("${SDK_RIFT}/Include") include_directories("${SDK_RIFT}/Src") set(link-flags) + set(c-flags) if(APPLE) set(link-flags "-framework CoreFoundation -framework CoreGraphics -framework IOKit -framework Quartz") + set(c-flags "-fno-strict-aliasing") else() if(MSVC) set(link-flags "/NODEFAULTLIB:LIBCMT") + else() + set(c-flags "-fno-strict-aliasing") endif() endif() - opentrack_library(opentrack-tracker-rift LINK "${link-flags}") + opentrack_library(opentrack-tracker-rift LINK "${link-flags}" COMPILE "${c-flags}") if(MSVC) target_link_libraries(opentrack-tracker-rift "${SDK_RIFT}/Lib/Win32/libovr.lib" winmm.lib setupapi.lib) else() -- cgit v1.2.3