summaryrefslogtreecommitdiffhomepage
path: root/cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-07-06 12:05:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-07-06 12:07:50 +0200
commit8b162b3d26d35d628c9dce83f7267c5a9e04b44d (patch)
treecaf283fa15951b471976d41f08391d12417be53e /cmake
parent1e26e00e9ae0c519355e3a6fe5ad098d1f6a9622 (diff)
cmake/rift: cmake has "else if" it turns out
Diffstat (limited to 'cmake')
-rw-r--r--cmake/opentrack-rift.cmake12
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()