[CMake] issue with FindSDL defining SDL_FOUND to FALSE after finding it (CMake 2.6.0 RC9)
Bill Hoffman
bill.hoffman at kitware.com
Tue Apr 29 23:24:50 EDT 2008
Philip Lowman wrote:
> 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
>
>
I think have already fixed this. The fix is in CVS and will be in
2.6.0. Please try the CVS version of the FindSDL*cmake and verify that
the problem goes away.
-Bill
More information about the CMake
mailing list