cmake: Correct CMake checks for LINUX
Some CMake checks were recently switched from UNIX to LINUX to get them to not apply to macOS/OSX. Since LINUX doesn't seem to be defined, switch these checks to UNIX AND NOT APPLE.
This commit is contained in:
parent
0daade5f8f
commit
12abbd9205
@ -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})
|
||||
|
2
deps/glad/CMakeLists.txt
vendored
2
deps/glad/CMakeLists.txt
vendored
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user