vcpkg/ports/freeglut/vcpkg-cmake-wrapper.cmake
Stefano Sinigardi 9c33de2d07 [freeimage,freeglut,giflib,libwebp] port patches from #5169 (#6364)
* [freeimage] improve compatibility with other ports, using typedefs identical to other headers to avoid errors
* [libwebp] fixes for non-win32 systems
* [giflib] revert again #5578
* [freeglut] add missing wrapper for linux
2019-05-09 11:45:23 -07:00

11 lines
347 B
CMake

_find_package(${ARGS})
if(GLUT_FOUND)
find_library(XRANDR_LIBRARY NAMES xrandr Xrandr)
if(XRANDR_LIBRARY)
list(APPEND GLUT_LIBRARIES ${XRANDR_LIBRARY})
if(TARGET GLUT::GLUT)
set_property(TARGET GLUT::GLUT APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${XRANDR_LIBRARY})
endif()
endif()
endif()