summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-01 13:53:17 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-01 13:53:17 +0100
commit2d5bdc9d7211d68e619b9d255b46f551d50ef515 (patch)
treea0a21bffe9e4bdd2de85b6807c3731733219ede5 /CMakeLists.txt
parent44162ed05648e68bd07dfcb35e86b6a18b3d3372 (diff)
fix rift build
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
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()