summaryrefslogtreecommitdiffhomepage
path: root/cmake/opentrack-rift.cmake
diff options
context:
space:
mode:
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)