From ba44a7233969849fe243c80ca8d58a46ac3ea329 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 16 Jan 2016 15:50:45 +0100 Subject: [PATCH] Fixed: Link to X11 under Linux --- code/nel/src/3d/driver/opengl/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/nel/src/3d/driver/opengl/CMakeLists.txt b/code/nel/src/3d/driver/opengl/CMakeLists.txt index 18b4886ed..edff05d2a 100644 --- a/code/nel/src/3d/driver/opengl/CMakeLists.txt +++ b/code/nel/src/3d/driver/opengl/CMakeLists.txt @@ -1,16 +1,18 @@ -FIND_PACKAGE(OpenGL REQUIRED) - IF(NOT WIN32) IF(APPLE) FIND_LIBRARY(CARBON NAMES Carbon) FIND_LIBRARY(COCOA NAMES Cocoa) + FIND_PACKAGE(OpenGL REQUIRED) ELSE() SET(OLD_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES}) SET(CMAKE_FIND_LIBRARY_SUFFIXES .so) FIND_PACKAGE(X11) FIND_PACKAGE(XF86VidMode) + FIND_PACKAGE(OpenGL REQUIRED) SET(CMAKE_FIND_LIBRARY_SUFFIXES ${OLD_CMAKE_FIND_LIBRARY_SUFFIXES}) ENDIF() +ELSE() + FIND_PACKAGE(OpenGL REQUIRED) ENDIF() FILE(GLOB SRC *.cpp *.h *.def *.rc)