[Tux4kids-commits] r615 - tuxmath/trunk/src
tholy-guest at alioth.debian.org
tholy-guest at alioth.debian.org
Wed Aug 13 11:48:17 UTC 2008
Author: tholy-guest
Date: 2008-08-13 11:48:16 +0000 (Wed, 13 Aug 2008)
New Revision: 615
Modified:
tuxmath/trunk/src/CMakeLists.txt
Log:
Fix problem in CMake build handling SDL_gfx.
Modified: tuxmath/trunk/src/CMakeLists.txt
===================================================================
--- tuxmath/trunk/src/CMakeLists.txt 2008-08-13 11:36:24 UTC (rev 614)
+++ tuxmath/trunk/src/CMakeLists.txt 2008-08-13 11:48:16 UTC (rev 615)
@@ -8,9 +8,10 @@
find_package(SDL_mixer REQUIRED)
find_package(SDL_gfx)
-if (NOT SLDGFX_FOUND)
- set(TUXMATH_EXTRA_SRC ${TUXMATH_EXTRA_SRC} SDL_rotozoom.c)
-endif (NOT SLDGFX_FOUND)
+if (NOT ${SLDGFX_FOUND})
+ message("Adding rotozoom")
+ set(TUXMATH_EXTRA_SRC ${TUXMATH_EXTRA_SRC} SDL_rotozoom.c)
+endif (NOT ${SLDGFX_FOUND})
## Define the source files used for each executable
@@ -105,7 +106,7 @@
if (SDLGFX_FOUND)
target_link_libraries (tuxmath
- ${SDLGFX_INCLUDE_DIR}
+ ${SDLGFX_LIBRARY}
)
endif (SDLGFX_FOUND)
More information about the Tux4kids-commits
mailing list