未验证 提交 46d54ce6 编写于 作者: J Jim 提交者: GitHub

Merge pull request #1103 from RytoEX/fix-ci-linux

cmake: Correct CMake checks for LINUX
......@@ -5,7 +5,7 @@ if(APPLE)
include_directories(${COCOA})
endif()
if(LINUX)
if(UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
link_libraries(${X11_LIBRARIES})
include_directories(${X11_INCLUDE_DIR})
......
......@@ -23,7 +23,7 @@ endif()
set(glad_include_dirs
PRIVATE ${OPENGL_INCLUDE_DIR})
if (LINUX)
if (UNIX AND NOT APPLE)
list (APPEND glad_include_dirs
PRIVATE ${X11_X11_INCLUDE_PATH})
endif()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册