2022-04-06 02:14:30 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-12-30 02:34:27 +08:00
|
|
|
index 5568b63..bec3de5 100644
|
2022-04-06 02:14:30 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2022-12-30 02:34:27 +08:00
|
|
|
@@ -620,6 +620,15 @@ ELSE()
|
|
|
|
SET(PC_LIBS_PRIVATE "-lX11 -lXxf86vm -lXrandr -lGL -lm")
|
2022-04-06 02:14:30 +08:00
|
|
|
ENDIF()
|
|
|
|
ENDIF()
|
2022-12-30 02:34:27 +08:00
|
|
|
+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()
|
2022-04-06 02:14:30 +08:00
|
|
|
# Client applications need to define FreeGLUT GLES version to
|
2022-12-30 02:34:27 +08:00
|
|
|
# bootstrap headers inclusion in freeglut_std.h:
|
|
|
|
SET(PC_LIBNAME ${LIBNAME})
|