From e702738694ba8fdb701f94b79c866ad0d317ceb3 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Wed, 30 Jul 2014 15:31:05 -0700 Subject: [PATCH] only add udev and xinerama on UNIX --- cmake/modules/FindLibOVR.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)