[cmake-developers] [CMake 0015268]: FindOpenGL.cmake incorrectly depends on X11 on Linux

Mantis Bug Tracker mantis at public.kitware.com
Fri Nov 28 11:19:18 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15268 
====================================================================== 
Reported By:                GreatEmerald
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15268
Category:                   Modules
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-11-28 11:19 EST
Last Modified:              2014-11-28 11:19 EST
====================================================================== 
Summary:                    FindOpenGL.cmake incorrectly depends on X11 on Linux
Description: 
Currently on Linux the FindOpenGL.cmake module includes FindX11.cmake. That is
not right, because there is little reason to ever link against X11 explicitly,
and the checks will outright fail on Wayland. Furthermore, having FindX11
included adds quite a bit more complexity to builds (takes more time, doesn't
work if you don't have a C compiler enabled etc.), and projects can always use
find_package(X11) manually if need be.

Additional Information: 
It seems that the blanket check for X11 was added back in 2002, and didn't
change much since:
https://github.com/Kitware/CMake/commit/079e8469abd4a2b404fd460ff41012e8d8b6fd1d
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-11-28 11:19 GreatEmerald   New Issue                                    
======================================================================



More information about the cmake-developers mailing list