summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenGL.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Modules: Include builtin FindPackageHandleStandardArgs directlyBrad King2011-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The FindPackageHandleStandardArgs module was originally created outside of CMake. It was added for CMake 2.6.0 by commit e118a627 (add a macro FIND_PACKAGE_HANDLE_STANDARD_ARGS..., 2007-07-18). However, it also proliferated into a number of other projects that at the time required only CMake 2.4 and thus could not depend on CMake to provide the module. CMake's own find modules started using the module in commit b5f656e0 (use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS in some of the FindXXX modules..., 2007-07-18). Then commit d358cf5c (add 2nd, more powerful mode to find_package_handle_standard_args, 2010-07-29) added a new feature to the interface of the module that was fully optional and backward compatible with all existing users of the module. Later commit 5f183caa (FindZLIB: use the FPHSA version mode, 2010-08-04) and others shortly thereafter started using the new interface in CMake's own find modules. This change was also backward compatible because it was only an implementation detail within each module. Unforutnately these changes introduced a problem for projects that still have an old copy of FindPackageHandleStandardArgs in CMAKE_MODULE_PATH. When any such project uses one of CMake's builtin find modules the line include(FindPackageHandleStandardArgs) loads the copy from the project which does not have the new interface! Then the including find module tries to use the new interface with the old module and fails. Whether this breakage can be considered a backward incompatible change in CMake is debatable. The situation is analagous to copying a standard library header from one version of a compiler into a project and then observing problems when the next version of the compiler reports errors in its other headers that depend on its new version of the original header. Nevertheless it is a change to CMake that causes problems for projects that worked with previous versions. This problem was discovered during the 2.8.3 release candidate cycle. It is an instance of a more general problem with projects that provide their own versions of CMake modules when other CMake modules depend on them. At the time we resolved this instance of the problem with commit b0118402 (Use absolute path to FindPackageHandleStandardArgs.cmake everywhere, 2010-09-28) for the 2.8.3 release. In order to address the more general problem we introduced policy CMP0017 in commit db44848f (Prefer files from CMAKE_ROOT when including from CMAKE_ROOT, 2010-11-17). That change was followed by commit ce28737c (Remove usage of CMAKE_CURRENT_LIST_DIR now that we have CMP0017, 2010-12-20) which reverted the original workaround in favor of using the policy. However, existing project releases do not set the policy behavior to NEW and therefore still exhibit the problem. We introduced in commit a364daf1 (Allow users to specify defaults for unset policies, 2011-01-03) an option for users to build existing projects by adding -DCMAKE_POLICY_DEFAULT_CMP0017=NEW to the command line. Unfortunately this solution still does not allow such projects to build out of the box, and there is no good way to suggest the use of the new option. The only remaining solution to keep existing projects that exhibit this problem building is to restore the change originally made in commit b0118402 (Use absolute path to FindPackageHandleStandardArgs.cmake everywhere, 2010-09-28). This also avoids policy CMP0017 warnings for this particular instance of the problem the policy addresses.
* Use FPHSA in FindOpenGLBen Boeckel2010-12-081-4/+5
| | | | This gets FindOpenGL to obey the QUIET and REQUIRED options correctly.
* Modules: Fix spelling 'To distributed' -> 'To distribute'Todd Gamblin2010-08-091-1/+1
|
* Convert CMake find-modules to BSD LicenseBrad King2009-09-281-0/+13
| | | | | | | This adds copyright/license notification blocks CMake's find-modules. Many of the modules had no notices at all. Some had notices referring to the BSD license already. This commit normalizes existing notices and adds missing notices.
* ENH: add path for 64 bit on old hpBill Hoffman2009-06-151-1/+3
|
* ENH: add more search paths on HPUXBill Hoffman2009-06-151-0/+8
|
* BUG: fix for bug 7104 look for GL in X11R6 dirsBill Hoffman2008-08-191-4/+4
|
* STYLE: remove unnecessary default search pathsAlexander Neundorf2007-08-101-26/+4
| | | | Alex
* STYLE: don't test twice for APPLEAlexander Neundorf2007-07-031-71/+73
| | | | Alex
* ENH: On apple do not look for X11Andy Cedilnik2006-07-051-0/+2
|
* ENH: Do not search for X11 if it is already found.Brad King2006-06-191-1/+3
|
* ENH: go back to finding the framework opengl on the macBill Hoffman2006-03-141-3/+1
|
* ENH: use standard include path for OpenGLBill Hoffman2006-03-141-1/+3
|
* ENH: take advantage of new framework stuffBill Hoffman2006-03-111-2/+3
|
* ENH: cleanupsKen Martin2005-12-151-4/+4
|
* ENH: add documentation support for modulesBill Hoffman2005-12-141-12/+11
|
* ENH: Removing extra 64-bit search paths. They are now constructed ↵Brad King2005-04-071-7/+1
| | | | automatically from the paths listed.
* ENH: Adding support for 64-bit library paths. Contributed by Peter Vanroose.Brad King2005-04-071-1/+7
|
* Fix for bug Bug #1287 - cmake use MesaGL by default instead of libGL - ↵Bill Hoffman2005-04-051-2/+2
| | | | Return to bug list
* ENH: Cleanup. Use relative path to modulesAndy Cedilnik2004-08-271-1/+1
|
* fix to find opengl on some osf systemsKen Martin2004-05-011-0/+2
|
* update commentsKen Martin2004-04-221-3/+2
|
* ERR: Shouldn't be adding xlibs to opengllibs on osxYves Starreveld2004-03-271-1/+4
|
* ENH: Adding /usr/include/w32api for OpenGL header search.Brad King2003-12-091-0/+1
|
* ENH: add checking for NOTFOUNDBill Hoffman2003-01-311-1/+0
|
* ENH: add checking for NOTFOUNDBill Hoffman2003-01-311-0/+1
|
* merge from branchKen Martin2003-01-221-4/+2
|
* BUG: fix for OSX with x11 gl stuffBill Hoffman2003-01-151-11/+8
|
* quote the variableBill Hoffman2003-01-151-1/+1
|
* better fix for win32Ken Martin2003-01-091-7/+4
|
* update to not put PROJECT_SOURCE_DIR as OPENGL_PATHKen Martin2003-01-091-10/+0
|
* FIX: minor fix, OPENGL_INCLUDE_PATH was set 2 timesSebastien Barre2002-11-121-3/+3
|
* FIX: typo + bring back the OPENGL_gl_LIBRARY path that can be used to find ↵Sebastien Barre2002-09-101-10/+13
| | | | GLU (was wiped out from FindGLU)
* Adding GLU to the OPENGL_LIBRARIES only if it is found.Bill Hoffman2002-09-091-2/+4
|
* ERR: Fix opengl finding on osxYves Starreveld2002-09-061-0/+12
|
* Hide lots of values in the advanced listIan Scott2002-09-051-10/+16
| | | | | Fix some bugs OpenGL always needs X11 on Unix
* ERR: Still need to define OPENGL_INCLUDE_PATH in addition to the standard ↵Brad King2002-09-041-0/+3
| | | | OPENGL_INCLUDE_DIR for backward compatability.
* Fixed mistake in commentsIan Scott2002-09-031-37/+130
| | | | | Transferred OPENGL finding logic in from VXL Added Some backwards compatibility with CMake1.4
* ERR: remove automatic Carbon framework on osxYves Starreveld2002-07-181-1/+1
|
* ENH: define OPENGL_LIBRARY_PATH (path to OPENGL_LIBRARY) so that it can be ↵Sebastien Barre2002-06-141-12/+16
| | | | used to search for other OpenGL-related libs
* ENH: make all OpenGL libs advanced, and add support for glu lib with BorlandSebastien Barre2002-06-131-2/+9
|
* find openGL in CarbonYves Starreveld2002-05-181-1/+1
|
* better to find mac openglBill Hoffman2002-04-171-16/+19
|
* ENH: fix debugging with borlandBill Hoffman2001-12-031-1/+5
|
* ENH: change the syntax of the SET command, fix the combo box for larger stringsBill Hoffman2001-05-241-3/+1
|
* fix opengl on hpBill Hoffman2001-05-211-4/+1
|
* simple moduleKen Martin2001-05-021-0/+33