From 49a1772bf1f5b0635913d23a8f3583501074192d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 22 Aug 2016 13:26:25 +0200 Subject: cmake/rift: fix link on msvc --- cmake/opentrack-rift.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3