summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenGL.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindOpenGL.cmake')
-rw-r--r--Modules/FindOpenGL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenGL.cmake b/Modules/FindOpenGL.cmake
index edeca48..5a278d8 100644
--- a/Modules/FindOpenGL.cmake
+++ b/Modules/FindOpenGL.cmake
@@ -95,7 +95,7 @@ ELSE (WIN32)
# It's not true on OSX.
IF (OPENGL_gl_LIBRARY)
- INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
+ INCLUDE(FindX11)
IF (X11_FOUND)
IF (NOT APPLE)
SET (OPENGL_LIBRARIES ${X11_LIBRARIES})