[Kde-games-devel] KDEGAMES_FOUND doesn't work in CMake

Albert Astals Cid aacid at kde.org
Mon Nov 5 18:43:15 UTC 2012


El Dilluns, 5 de novembre de 2012, a les 16:12:48, Zsuró Tibor va escriure:
> Hi!
> 
> I' wrinting a game for KDE and I use this:
> 
> 
> http://techbase.kde.org/Projects/Games/Porting_to_libkdegames_v5#Build_syste
> m_changes
> 
> This is in my CMakeLists.txt:
> 
>    FIND_PACKAGE( KDEGames )
>    IF( NOT KDEGAMES_FOUND )
>     MESSAGE( FATAL_ERROR
>    "----------------------------------------------------------
>     KDEGames library not found!
> 
>     Ubuntu: sudo apt-get install libkdegames-dev
>    ----------------------------------------------------------" )
>    ENDIF( NOT KDEGAMES_FOUND )
> 
> I install the libkdegames-dev package ( on Arch too ) always show this
> message.
> 
> The
> 
>    FIND_PACKAGE( KDEGames REQUIRED )
> 
> is works, but i want show message.
> 
> Anybody can help me?

Can you try with

IF( NOT KDEGames_FOUND )

note the capitalization matches the one in FIND_PACKAGE

Cheers,
  Albert

> 
> Zsuró Tibor


More information about the kde-games-devel mailing list