Hi, FIND_PACKAGE(SDL REQUIRED) was not working in my system [1], nor a friend's system [2], so I started messing around with FindSDL*.cmake to make them complain with http://www.cmake.org/cgi-bin/viewcvs.cgi/Modules/readme.txt?root=CMake&view=markup ... as much as possible (in fact none of them reported any errors at all)
http://pablo.etype.com.ar/FindSDL.diff Feel free to use/modify/ignore this patch, "it does the job for me" I tested it using: PROJECT (FINDSDL_TEST) # Library list SET(libs SDL SDL_image SDL_mixer SDL_net SDL_sound SDL_ttf ) FOREACH(libIter ${libs}) FIND_PACKAGE (${libIter}) # And FIND_PACKAGE (${libIter} REQUIRED) ENDFOREACH(libIter ${libs}) ... and installing/uninstalling: libsdl, sdl-image, sdl-mixer, sdl-ttf, sdl-net, sdl-sound (gentoo ebuilds) [1] Gentoo Linux 2.6.18-gentoo, x86_64, cmake 2.4.3, SDL 1.2.11 [2] Debian Linux 2.6.16, x86, cmake 2.4-patch 3 -- Pablo Odorico http://pablo.etype.com.ar/ _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
