MantisBT - CMake
View Issue Details
0012004CMakeModulespublic2011-03-23 04:482016-06-10 14:31
Arttu Valo 
Kitware Robot 
normalminoralways
closedmoved 
CMake 2.8.4 
 
0012004: Feature Request: New .cmake file for searching SDL_gfx
I noticed, that CMake does not have FindXXX.cmake file for SDL_gfx.
Add find_package(SDL_gfx). This should fail.
I have written FindSDL_gfx.cmake, and included it in the bug report.
No tags attached.
? FindSDL_gfx.cmake (2,030) 2011-03-23 04:48
https://public.kitware.com/Bug/file/3769/FindSDL_gfx.cmake
Issue History
2011-03-23 04:48Arttu ValoNew Issue
2011-03-23 04:48Arttu ValoFile Added: FindSDL_gfx.cmake
2011-03-23 05:34Michael WildNote Added: 0025879
2012-08-11 11:09David ColeStatusnew => backlog
2012-08-11 11:09David ColeNote Added: 0030246
2016-06-10 14:28Kitware RobotNote Added: 0041824
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0025879)
Michael Wild   
2011-03-23 05:34   
A few remarks:

* in new code, lower-case commands are preferred (e.g. find_path())

* paths in ENV should go into the PATHS list, not into HINTS. The latter are intended for computed paths (e.g. by querying pkg_config or guessing a library path based on the include path). For the find_path() call, append /include to them, for the find_library call, append /lib. By default CMake should also search /lib64 where appropriate (e.g. it does not on Debian based Linux distros, where it would be wrong to do so).

* set PATH_SUFFIXES in the find_path() call to SDL12 SDL11 SDL.

* remove the standard paths from the PATHS list in the find_* calls. Take a look at the files ${CMAKE_ROOT}/Modules/Platform/*.cmake (in particular, the variables CMAKE_SYSTEM_PREFIX_PATH, CMAKE_SYSTEM_INCLUDE_PATH, CMAKE_SYSTEM_LIBRARY_PATH). A few prefixes I can easily spot are: ~/Library/Frameworks, /Library/Frameworks, /usr/local, /usr, /sw, /opt/local, /opt/csw, /opt. Come to think of it, that looks like you can remove them all (except for the ENV paths, that is).

* use the FindPackageHandleStandardArgs module instead of manually setting SDLGFX_FOUND.

* your module should set the un-cached variables SDLGFX_INCLUDE_DIRS and SDLGFX_LIBRARIES.
(0030246)
David Cole   
2012-08-11 11:09   
Sending old, never assigned issues to the backlog.

(The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...)

If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]

It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
(0041824)
Kitware Robot   
2016-06-10 14:28   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.