summaryrefslogtreecommitdiff
path: root/Modules/FindGLUT.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindGLUT: Fix regression when pkg-config is not availableBrad King2022-10-271-3/+5
| | | | | | | | | In commit a2fc4b6257 (FindGLUT: Drop the now-unnecessary exclusion of pkg-config for multiconfig, 2022-10-13, v3.25.0-rc2~16^2) we accidentally removed the entire condition around the `pkg-config` code path instead of just the multi-config part. Fixes: #24095
* FindGLUT: Drop the now-unnecessary exclusion of pkg-config for multiconfigleha-bot2022-10-131-8/+3
| | | | | | | | | Revert commit e0a62b84b5 (FindGLUT: On Windows and with multiple config generator do not use pkg-config, 2022-09-27, v3.25.0-rc1~69^2). We now call `select_library_configurations()` even after using pkg-config, which will handle the absent libraries on Debug/Release configurations. Issue: #24028
* FindGLUT: Drop the now-unnecessary ALLOW_SYSTEM_CFLAGS logicleha-bot2022-10-131-14/+0
| | | | | | | | | | Revert commit 8041ca5df0 (FindGLUT: Fix GLUT_INCLUDE_DIRS with pkg-config and /usr/include, 2022-05-11, v3.24.0-rc1~151^2). As the main code path will always do `find_path()` which respects the `CMAKE_FIND_ROOT_PATH_MODE_INCLUDE` variable and will search in system paths depending on that variable. Issue: #23474, #24028
* FindGLUT: Use pkg-config's results as HINTS for normal searchleha-bot2022-10-131-41/+19
| | | | | | | | | | | | Since commit f90d15458a (FindGLUT: Use pkg-config to find flags if available, 2021-06-11, v3.22.0-rc1~469^2), pkg-config results are used directly. However, this is not compatible with other features of CMake's find logic such as `CMAKE_FIND_ROOT_PATH` and per-config results. Switch to a convention already used by pkg-config support in other find modules, in which the pkg-config results are only used as hints for the main search logic. Fixes: #24028
* FindGLUT: On Windows and with multiple config generator do not use pkg-configSilvio Traversaro2022-09-281-1/+4
|
* FindGLUT: Remove undocumented variables GLUT_INCLUDE_PATH and GLUT_LIBRARYLetu Ren2022-05-171-4/+0
| | | | Fixes: #23370
* FindGLUT: Fix GLUT_INCLUDE_DIRS with pkg-config and /usr/includeLetu Ren2022-05-121-0/+14
| | | | Fixes: #23474
* FindGLUT: Search for freeglut as well using PkgConfig.Mehdi Chinoune2022-04-111-0/+3
|
* FindGLUT: Search for "freeglut" first On WindowsMehdi Chinoune2022-04-111-1/+1
|
* FindGLUT: Quiet pkg-config errorsnega2022-03-301-2/+2
| | | | Issue: #23314
* Merge topic 'FindGLUT-link-dirs'Brad King2022-02-161-0/+3
|\ | | | | | | | | | | | | 44f7238d5d FindGLUT: Use link directories for libs from pkg-config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6985
| * FindGLUT: Use link directories for libs from pkg-configSilvio Traversaro2022-02-151-0/+3
| | | | | | | | | | | | | | | | | | Since commit f90d15458a (FindGLUT: Use pkg-config to find flags if available, 2021-06-11, v3.22.0-rc1~469^2), the `GLUT_LIBRARIES` may come from `pkg-config`, in which case they may be `-l` flags instead of absolute paths. Propagate `GLUT_LIBRARY_DIRS` to GLUT::GLUT too. Fixes: #23229
* | FindGLUT: Provide modern-named GLUT_INCLUDE_DIRS result variableBrad King2021-12-201-4/+24
| | | | | | | | | | | | | | Previously this module only provided `GLUT_INCLUDE_DIR`, which does not follow the modern naming convention documented in `cmake-developer(7)`. Issue: #23018
* | FindGLUT: Modernize documentation layoutBrad King2021-12-201-12/+20
| |
* | FindGLUT: Move mark_as_advanced calls closer to find callsBrad King2021-12-201-3/+4
|/
* FindGLUT: Provide legacy GLUT_INCLUDE_DIR result in pkg-config code pathBrad King2021-12-171-0/+2
| | | | | | | | | | | | | Since commit f90d15458a (FindGLUT: Use pkg-config to find flags if available, 2021-06-11, v3.22.0-rc1~469^2) we return early if pkg-config provides the information. During review of that commit, code to populate the legacy `GLUT_INCLUDE_DIR` result variable was removed from that code path. Add code to provide it. Also fix the test case to use `GLUT_INCLUDE_DIR`, the result variable documented officially by the module. Fixes: #23018
* FindGLUT: Use pkg-config to find flags if availableChristopher Degawa2021-07-021-1/+35
| | | | | | | FindGLUT fails to properly link a static libglut as it does not list the dependencies needed. Signed-off-by: Christopher Degawa <ccom@randomderp.com>
* FindGLUT: Reduce if/else nesting and indentationChristopher Degawa2021-07-021-68/+59
| | | | Signed-off-by: Christopher Degawa <ccom@randomderp.com>
* Merge topic 'FindGLUT-macos-tbd'Brad King2020-12-141-2/+10
|\ | | | | | | | | | | | | d29d034e2e FindGLUT: Handle Mojave and Big Sur 'tbd' framework files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5601
| * FindGLUT: Handle Mojave and Big Sur 'tbd' framework filesRobert Maynard2020-12-111-2/+10
| |
* | Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-0/+5
|/ | | | Issue: #19715
* Help: Improve description of modulesBartosz Kosiorek2019-04-231-1/+1
|
* Help: Convert remaining modules to block-style commentsKitware Robot2018-10-221-32/+33
|
* FindGLUT: Find debug/release variants on WindowsKohányi Róbert2018-09-251-9/+33
| | | | | | | | | | | | | | * Separate find_library calls to find Release and Debug libs. * Using select_library_configurations to properly populate required variables (similar to FindZLIB). * Setting Release and Debug specific properties (IMPORTED_CONFIGURATIONS_<CONFIG> and IMPORTED_LOCATION_<CONFIG>). * Falling back to setting just IMPORTED_LOCATION if GLUT_glut_LIBRARY_RELEASE or GLUT_glut_LIBRARY_DEBUG are not defined. This enables proper linking on Windows. Fixes: #17037
* FindGLUT: Add library dependencies only if they existBrad King2017-04-261-3/+5
| | | | Fixes: #14060
* Simplify CMake per-source license noticesBrad King2016-09-271-13/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Per-source copyright/license notice headers that spell out copyright holder names and years are hard to maintain and often out-of-date or plain wrong. Precise contributor information is already maintained automatically by the version control tool. Ultimately it is the receiver of a file who is responsible for determining its licensing status, and per-source notices are merely a convenience. Therefore it is simpler and more accurate for each source to have a generic notice of the license name and references to more detailed information on copyright holders and full license terms. Our `Copyright.txt` file now contains a list of Contributors whose names appeared source-level copyright notices. It also references version control history for more precise information. Therefore we no longer need to spell out the list of Contributors in each source file notice. Replace CMake per-source copyright/license notice headers with a short description of the license and links to `Copyright.txt` and online information available from "https://cmake.org/licensing". The online URL also handles cases of modules being copied out of our source into other projects, so we can drop our notices about replacing links with full license text. Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority of the replacements mechanically. Manually fix up shebang lines and trailing newlines in a few files. Manually update the notices in a few files that the script does not handle.
* FindGLUT.cmake: Add imported targets and documentationPhilipp Moeller2014-06-241-8/+69
| | | | Also let find_library really search for frameworks on OS X.
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-7/+18
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* FindGLUT: BeOS does not have libXi and libXmuRolf Eike Beer2013-01-071-7/+21
|
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-5/+5
| | | | | | | | | | | | | | | | | Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | egrep -z -v 'Tests/CMakeTests/While-Endwhile-' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Convert CMake-language commands to lower caseKitware Robot2012-08-131-22/+22
| | | | | | | | | | | | | | | | | Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: cmake --help-command-list | grep -v "cmake version" | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' | egrep -z -v '^(Utilities/cm|Source/kwsys/)' | xargs -0 sed -i -f convert.sed && rm convert.sed
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-10/+10
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* FindGLUT: honor REQUIRED (#12466)Rolf Eike Beer2012-02-151-18/+16
|
* Add freeglut as library name (#10031)David Cole2011-01-171-1/+1
| | | | Thanks to Thomas Sondergaard for the patch in the bug report.
* 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.
* BUG: fix for 7746Bill Hoffman2008-09-261-0/+1
|
* BUG: fix bug 6594 look for glut in more places on windowsBill Hoffman2008-03-131-40/+23
|
* ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS() macro in most of theAlexander Neundorf2007-07-191-20/+1
| | | | | | | not-too-complicated modules -remove unnecessary default search paths used in the FIND_XXX() calls Alex
* BUG: fix for bug#3646 GLUT not Glut for framework nameBill Hoffman2006-10-031-1/+1
|
* ENH: some style fixes for the bookKen Martin2005-12-151-1/+1
|
* ENH: add documentation support for modulesBill Hoffman2005-12-141-11/+8
|
* BUG: fix for bug 852Bill Hoffman2005-07-151-1/+2
|
* ENH: Removing extra 64-bit search paths. They are now constructed ↵Brad King2005-04-071-8/+0
| | | | automatically from the paths listed.
* ENH: Adding support for 64-bit library paths. Contributed by Peter Vanroose.Brad King2005-04-071-0/+8
|
* BUG: fix for bug 743Bill Hoffman2004-04-221-1/+3
|
* ENH: Description of variables now specifies that the full path is required.Luis Ibanez2002-12-031-4/+4
|
* Hide lots of values in the advanced listIan Scott2002-09-051-4/+7
| | | | | Fix some bugs OpenGL always needs X11 on Unix
* Fixed mistake in commentsIan Scott2002-09-031-31/+87
| | | | | Transferred OPENGL finding logic in from VXL Added Some backwards compatibility with CMake1.4
* ENH: add more paths for the HPSebastien Barre2002-06-181-0/+2
|