summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-30 22:07:32 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-05-30 22:07:32 +0000
commitabe7c7484f9c381706f8c8ed816a80715d0ad644 (patch)
tree76603bb11e5f2a57b4c606d4d81de177ae6cfe10
parenta5c934386f47aef1921dba08051778df76561f30 (diff)
downloadnavit-abe7c7484f9c381706f8c8ed816a80715d0ad644.tar.gz
Fix:Build:Link graphics_sdl against freetype in case of missing SDL_ttf
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@5520 ffa7fe5e-494d-0410-b361-a75ebd5db220
-rwxr-xr-xnavit/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/navit/CMakeLists.txt b/navit/CMakeLists.txt
index 3fb54e715..34cbe7129 100755
--- a/navit/CMakeLists.txt
+++ b/navit/CMakeLists.txt
@@ -306,6 +306,8 @@ if(SDL_FOUND AND SDLIMAGE_FOUND AND FREETYPE_FOUND)
if(SDLTTF_FOUND)
set(SDL_TTF 1)
list(APPEND SDL_LIBRARY ${SDLTTF_LIBRARY})
+ else(SDLTTF_FOUND)
+ list(APPEND SDL_LIBRARY ${FREETYPE_LIBRARY})
endif(SDLTTF_FOUND)
set_with_reason(graphics/sdl "SDL/SDL_image libs found" TRUE ${SDL_LIBRARY} ${SDLIMAGE_LIBRARY})
endif(SDL_FOUND AND SDLIMAGE_FOUND AND FREETYPE_FOUND)