summaryrefslogtreecommitdiff
path: root/Modules/FindSDL.cmake
Commit message (Collapse)AuthorAgeFilesLines
* FindSDL: Allow if() to dereference SDL_INCLUDE_DIR for matchingRolf Eike Beer2015-01-081-1/+1
| | | | Otherwise the syntax is incorrect when the variable is empty.
* Fix wording of "the the" typos throughout textRuslan Baratov2014-01-031-2/+2
|
* FindSDL: Add additional search paths on MSVC (#14029)Benjamin Eikel2013-11-211-2/+8
| | | | | | | | Add an architecture-specific library directory path suffix for each component. Use different search path for SDL_sound. Project files in VisualC directory suggest that a win32lib will hold the libraries. Reported-by: Paul Hampson <Paul.Hampson@Pobox.com>
* Convert builtin help to reStructuredText source filesKitware Robot2013-10-151-37/+52
| | | | | | | | Run the convert-help.bash script to convert documentation: ./convert-help.bash "/path/to/CMake-build/bin" Then remove it.
* FindSDL: Add path suffixes for <prefix>/include/(SDL|SDL12|SDL11)Brad King2013-10-081-1/+3
| | | | | | | | | Also add a comment explaining the purpose of the include/SDL* path suffixes. As explained in commit 7cb51739 (FindSDL: Restore accidentally dropped search paths (#13651), 2012-11-05) the include/SDL* path suffixes are for looking in the ENV{SDLDIR} location. Inspired-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
* Swap linking order of SDLmain and SDL (#0013769)Benjamin Eikel2012-12-021-1/+1
|
* Merge branch 'fix-FindSDL-paths' into releaseBrad King2012-11-061-1/+2
|\
| * FindSDL: Restore accidentally dropped search paths (#13651)Brad King2012-11-051-1/+2
| | | | | | | | | | | | | | | | | | Cleanup in commit 9ed24c53 (FindSDL: Remove from find_... calls PATHS that are set by default, 2012-09-04) accidentally dropped some search paths. Restore the dropped PATH_SUFFIXES and add more suffixes needed to search paths that were previously hard-coded. Reported-by: Gino van den Bergen <gino@dtecta.com>
* | Merge topic 'ImproveFindSDLxxxModules'David Cole2012-09-251-29/+31
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 68c6b13 FindSDL: Stay compatible with old input variables 9ed24c5 FindSDL: Remove from find_... calls PATHS that are set by default 38a0f71 FindSDL: Add my copyright tag to all FindSDL_* modules 020d213 FindSDL: Add version support 61a566c FindSDL: Format documentation 22154c7 FindSDL: Update documentation 4541c07 FindSDL: Add version support for FindSDL_ttf a28c247 FindSDL: Use SDL_TTF prefix for variables 9f5dbf4 FindSDL: Update documentation d83f80d FindSDL: Add version support for FindSDL_mixer c10b691 FindSDL: Use SDL_MIXER prefix for variables 03dd6cc FindSDL: Pass SDL_SOUND_LIBRARY to FIND_PACKAGE_HANDLE_STANDARD_ARGS 326beca FindSDL: Use same capitalization for FPHSA as file name cfe5b87 FindSDL: Version support for FindSDL_sound 776d3fe FindSDL: Format the documentation a5194e2 FindSDL: Add "cmake_minimum_required" to "try_compile" project ...
| * FindSDL: Remove from find_... calls PATHS that are set by defaultBenjamin Eikel2012-09-251-18/+1
| | | | | | | | Use PATH_SUFFIXES to add SDL parts to standard paths.
| * FindSDL: Add my copyright tag to all FindSDL_* modulesBenjamin Eikel2012-09-251-0/+1
| |
| * FindSDL: Add version supportBenjamin Eikel2012-09-251-1/+19
| |
| * FindSDL: Format documentationBenjamin Eikel2012-09-251-10/+10
| |
* | FindSDL: add SDLMAIN_LIBRARY only once (#13262)Rolf Eike Beer2012-09-171-3/+5
|/
* use PATH_SUFFIXES to simplify find_* callsRolf Eike Beer2012-08-141-2/+2
| | | | | | Especially remove "lib64" when the given paths are all Unix ones and "lib" is also explicitely given. In that case CMake will search "lib64" anyway for platforms where it is known to make sense.
* use the find_* functions ENV parameterRolf Eike Beer2012-08-141-3/+3
| | | | | | | | | Instead of directly passing $ENV{SOMEVAR} to a find_* call pass in ENV SOMEVAR. This will make sure the paths will get correctly handled through different platforms, especially on Windows. Also fixes one place where paths with windows delimiters (\) were hardcoded to use forward slashes.
* Remove CMake-language block-end command argumentsKitware Robot2012-08-131-10/+10
| | | | | | | | | | | | | | | | | 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-32/+32
| | | | | | | | | | | | | | | | | 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-19/+19
| | | | | | | | | | | | | | | | | 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/ \+$//'
* FindSDL*: use FPHSA (#12467)Rolf Eike Beer2012-02-111-7/+3
|
* 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 include path detection with SDLDIR env var (issue #9086).Philip Lowman2009-07-181-17/+5
| | | | Also removed some superfluous search paths.
* ENH: Cleanup Find* modules with new HINTS featureBrad King2008-06-091-20/+4
| | | | | | | | | | - The find_* commands now provide a HINTS option. - The option specifies paths to be preferred over the system paths. - Many Find* modules were using two find calls with NO_DEFAULT_PATH to approximate the behavior, but that blocked users from overriding things with CMAKE_PREFIX_PATH. - This commit uses the HINTS feature to get desired behavior in only one find command call.
* ENH: do not clear find variablesBill Hoffman2008-04-251-1/+1
|
* BUG: Remove references to CMAKE_PREFIX_PATH variable. It should not be ↵Brad King2008-01-151-17/+3
| | | | referenced directly by FIND_* command calls. The commands search it automatically.
* BUG: Fixed modules to set FOO_FOUND when both headers and libraries are found.Eric Wing2007-12-201-69/+133
| | | | | | | | BUG: FindSDL now has flag it responds to so it will not find/link against SDLmain. This is required to build libraries instead of applications since they don't have main(). ENH: All modules have a predictable search order, where environmental variables are searched before system paths. This is designed to make automation easier for those that need to automatically build projects without intervention but may be using alternative install locations for isolated testing. ENH: New modules for OpenSceneGraph, Freetype, GDAL, Lua, QuickTime, GIFLIB, Producer, OpenThreads. STYLE: Added documentation explaining peculuar SDL_LIBRARY_TEMP variable in SDL module when library find is incomplete.
* ENH: add second failure message parameter toAlexander Neundorf2007-07-231-1/+1
| | | | | | | | FIND_PACKAGE_HANDLE_STANDARD_ARGS(), so cmake modules can specify their own better failure messages. If the default is ok use "DEFAULT_MSG". Do this also for FindBoost.cmake (#5349) Alex
* ENH: use the new FIND_PACKAGE_HANDLE_STANDARD_ARGS() macro in most of theAlexander Neundorf2007-07-191-31/+11
| | | | | | | not-too-complicated modules -remove unnecessary default search paths used in the FIND_XXX() calls Alex
* BUG: fix for 3765Bill Hoffman2006-10-031-0/+1
|
* ENH: cleanupsKen Martin2005-12-151-2/+2
|
* ENH: add documentation support for modulesBill Hoffman2005-12-141-5/+4
|
* ENH: changes from Eric Wing, bug 2249Bill Hoffman2005-10-281-18/+50
|
* ENH: add Eric Wings FindSDL updatesBill Hoffman2005-08-101-1/+1
|
* ENH: add a bunch of find sdl stuff from eric wingBill Hoffman2005-07-131-16/+113
|
* ENH: Removing extra 64-bit search paths. They are now constructed ↵Brad King2005-04-071-1/+0
| | | | automatically from the paths listed.
* ENH: Adding support for 64-bit library paths. Contributed by Peter Vanroose.Brad King2005-04-071-1/+2
|
* merge from branchKen Martin2003-01-221-0/+33