summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-rift.cmake
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-22 13:26:25 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-08-23 00:05:15 +0200
commit49a1772bf1f5b0635913d23a8f3583501074192d (patch)
treea31a19787c5a195e6654b842069491ad1408d11c /cmake/opentrack-rift.cmake
parentf7aa20515c7d5385f9842388008ea04790b0073d (diff)
cmake/rift: fix link on msvc
Diffstat (limited to 'cmake/opentrack-rift.cmake')
-rw-r--r--cmake/opentrack-rift.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmake/opentrack-rift.cmake b/cmake/opentrack-rift.cmake
index d4f8e8e1..63ee47e5 100644
--- a/cmake/opentrack-rift.cmake
+++ b/cmake/opentrack-rift.cmake
@@ -22,7 +22,12 @@ if(NOT opentrack-rift-included)
set(ext a)
set(p lib)
endif()
- target_link_libraries(${proj} ${${opt}}/libLibOVR.${ext})
+ if(MSVC)
+ set(pfx "")
+ else()
+ set(pfx "lib")
+ endif()
+ target_link_libraries(${proj} ${${opt}}/${pfx}LibOVR.${ext})
if(WIN32)
target_link_libraries(${proj} winmm setupapi ws2_32 imagehlp wbemuuid)
set(ext)