mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 11:49:07 +08:00
f3a1217662
* Add x11 dependency * Update to 3.4.0, cleanup * Document exported config * Update versions * Test (Free)GLUT cmake usage * FindGLUT debug postfix support needs CMake 3.13 * Revise installed file names * Fix typo
21 lines
700 B
Diff
21 lines
700 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 5568b63..bec3de5 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -620,6 +620,15 @@ ELSE()
|
|
SET(PC_LIBS_PRIVATE "-lX11 -lXxf86vm -lXrandr -lGL -lm")
|
|
ENDIF()
|
|
ENDIF()
|
|
+if(NOT X11_Xrandr_FOUND)
|
|
+ string(REPLACE " -lXrandr" "" PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
|
|
+endif()
|
|
+if(NOT X11_xf86vmode_FOUND)
|
|
+ string(REPLACE " -lXxf86vm" "" PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
|
|
+endif()
|
|
+if(X11_Xinput_FOUND)
|
|
+ string(REPLACE "-lX11 " "-lX11 -lXi " PC_LIBS_PRIVATE "${PC_LIBS_PRIVATE}")
|
|
+endif()
|
|
# Client applications need to define FreeGLUT GLES version to
|
|
# bootstrap headers inclusion in freeglut_std.h:
|
|
SET(PC_LIBNAME ${LIBNAME})
|