diff --git a/cmake/modules/FindLibOVR.cmake b/cmake/modules/FindLibOVR.cmake index 16be7470b6..b2c0655991 100644 --- a/cmake/modules/FindLibOVR.cmake +++ b/cmake/modules/FindLibOVR.cmake @@ -51,8 +51,11 @@ elseif (WIN32) endif () select_library_configurations(LIBOVR) +set(LIBOVR_LIBRARIES "${LIBOVR_LIBRARY}") -set(LIBOVR_LIBRARIES "${LIBOVR_LIBRARY}" "${UDEV_LIBRARY}" "${XINERAMA_LIBRARY}") +if (UNIX) + set(LIBOVR_LIBRARIES "${LIBOVR_LIBRARIES}" "${UDEV_LIBRARY}" "${XINERAMA_LIBRARY}" +endif () include(FindPackageHandleStandardArgs) if (UNIX AND NOT APPLE)