[CMake] issue with FindSDL defining SDL_FOUND to FALSE after finding it (CMake 2.6.0 RC9)

Philip Lowman philip at yhbt.com
Tue Apr 29 23:08:31 EDT 2008


I'm having an issue with the FindSDL.cmake module included with CMake 2.6.0
RC9 (testing on Windows)

For some reason immediately after it "finds" or you help it find the SDL, if
you configure again, SDL_FOUND gets changed from TRUE to FALSE.  I believe
this is being caused by SDL_LIBRARY_TEMP being set to empty (and cache
internal).

Reproducer:


PROJECT(foo)
FIND_PACKAGE(SDL)
IF(SDL_FOUND)
    MESSAGE("SDL was found!")
ELSE()
    MESSAGE("SDL NOT found!")
ENDIF()

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080429/d77e03f4/attachment.htm>


More information about the CMake mailing list