From 8b162b3d26d35d628c9dce83f7267c5a9e04b44d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 6 Jul 2016 12:05:49 +0200 Subject: cmake/rift: cmake has "else if" it turns out --- cmake/opentrack-rift.cmake | 12 ++++-------- 1 file 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() -- cgit v1.2.3