MantisBT - CMake
View Issue Details
0013819CMakeCMakepublic2012-12-29 00:122013-05-06 09:32
Chris 
Benjamin Eikel 
normalmajoralways
closedfixed 
CMake 2.8.10.2 
 
0013819: findSDL_image.cmake is failing - Regression from CMake 2.8.9
findSDL_image.cmake is failing when using SDLDIR environment variable to define the path where SDL and SDL_image are located.

this appears to be a regression from 2.8.9 since uninstalling 2.8.10.2 and installing 2.8.9 resolves the issue for me.
Set environment variable pointing to your SDL/SDL_image installation. for example:

 <SDLDIR>/bin
 <SDLDIR>/include
 <SDLDIR>/lib

add "Find_Package ( SDL_image REQUIRED )" to a CMakeLists.txt and it will fail
No tags attached.
Issue History
2012-12-29 00:12ChrisNew Issue
2012-12-29 05:09Rolf Eike BeerNote Added: 0031954
2012-12-31 11:12Benjamin EikelAssigned To => Benjamin Eikel
2012-12-31 11:12Benjamin EikelStatusnew => assigned
2012-12-31 11:14Benjamin EikelNote Added: 0031955
2012-12-31 11:16Benjamin EikelNote Deleted: 0031955
2012-12-31 11:16Benjamin EikelNote Added: 0031956
2012-12-31 11:16Benjamin EikelStatusassigned => resolved
2012-12-31 11:16Benjamin EikelResolutionopen => fixed
2013-05-06 09:32Robert MaynardNote Added: 0032994
2013-05-06 09:32Robert MaynardStatusresolved => closed

Notes
(0031954)
Rolf Eike Beer   
2012-12-29 05:09   
Broken in:

commit 9ed24c5316fc4e9b56e3b491dee2f88b2cbb6f17
Author: Benjamin Eikel <cmake@eikel.org>
Date: Tue Sep 4 17:20:37 2012 +0200

    FindSDL: Remove from find_... calls PATHS that are set by default
    
    Use PATH_SUFFIXES to add SDL parts to standard paths.


Code before:

 find_path(SDL_INCLUDE_DIR SDL.h
   HINTS
     ENV SDLDIR
   PATH_SUFFIXES include/SDL include
 ...

Code after:

 find_path(SDL_INCLUDE_DIR SDL.h
   HINTS
     ENV SDLDIR
   ...
   PATH_SUFFIXES SDL SDL12 SDL11
(0031956)
Benjamin Eikel   
2012-12-31 11:16   
http://cmake.org/gitweb?p=cmake.git;a=commit;h=fb864d6e03efdb82f8f2744972ad14c012d86cc7 [^]
(0032994)
Robert Maynard   
2013-05-06 09:32   
Closing resolved issues that have not been updated in more than 4 months.