diff options
Diffstat (limited to 'cmake/opentrack-rift.cmake')
-rw-r--r-- | cmake/opentrack-rift.cmake | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/cmake/opentrack-rift.cmake b/cmake/opentrack-rift.cmake index 20421709..ce2d8554 100644 --- a/cmake/opentrack-rift.cmake +++ b/cmake/opentrack-rift.cmake @@ -5,10 +5,8 @@ function(opentrack_rift_boilerplate proj opt) if(APPLE) set(link-flags "-framework CoreFoundation -framework CoreGraphics -framework IOKit -framework Quartz") set(c-flags "-fno-strict-aliasing") - else() - if(NOT MSVC) - set(c-flags "-fno-strict-aliasing") - endif() + elseif(NOT MSVC) + set(c-flags "-fno-strict-aliasing") endif() opentrack_boilerplate(${proj} LINK ${link-flags} COMPILE ${c-flags}) set(proj ${proj}) @@ -27,10 +25,8 @@ function(opentrack_rift_boilerplate proj opt) target_link_libraries(${proj} winmm setupapi ws2_32 imagehlp wbemuuid) set(ext) set(p) - else() - if(NOT APPLE) - target_link_libraries(${proj} udev Xinerama) - endif() + elseif(NOT APPLE) + target_link_libraries(${proj} udev Xinerama) endif() endif() endfunction() |