Fix:Build:Enable graphics_cocoa and vehicle_iphone when appropriate
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 24 Aug 2011 19:12:04 +0000 (19:12 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 24 Aug 2011 19:12:04 +0000 (19:12 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4709 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/CMakeLists.txt

index 4d8ca16..55b6462 100644 (file)
@@ -325,7 +325,7 @@ add_plugin(support/espeak "Default" FALSE)
 add_module(vehicle/android "Default" FALSE)
 add_module(vehicle/iphone "Default" FALSE)
 add_module(vehicle/wince "Default" FALSE)
-add_module(graphics/cocoa "Default" FALSE "-lcocoa" )
+add_module(graphics/cocoa "Default" FALSE)
 
 # other features
 add_feature(USE_PLUGINS "default" TRUE)
@@ -446,6 +446,10 @@ if(WINCE)
    set_with_reason(vehicle/file "wince: currently broken" FALSE)
    set_with_reason(vehicle/wince "wince detected" TRUE)
 endif()
+if (APPLE OR USE_UIKIT)
+   set_with_reason(vehicle/iphone "apple detected" TRUE)
+   set_with_reason(graphics/cocoa "apple detected" TRUE)
+endif()
 
 set(LOCALEDIR "${LOCALE_DIR}/locale")