Fix cmake find_package GLX warning for linux

This commit is contained in:
halx99 2023-07-08 17:13:30 +08:00
parent 86c4ef48d1
commit e47627b6cf
1 changed files with 6 additions and 0 deletions

View File

@ -7,6 +7,12 @@ set(CMAKE_DEBUG_TARGET_PROPERTIES
# POSITION_INDEPENDENT_CODE
)
# The ``OLD`` behavior for this policy is to set ``OpenGL_GL_PREFERENCE`` to
# ``LEGACY``. The ``NEW`` behavior for this policy is to set
# ``OpenGL_GL_PREFERENCE`` to ``GLVND``.
# need review those libs: X11 Xi Xrandr Xxf86vm Xinerama Xcursor rt m
cmake_policy(SET CMP0072 NEW)
# some useful variables for every one ax project
set(ENGINE_BINARY_PATH ${PROJECT_BINARY_DIR}/engine)