From: rikky Date: Sat, 20 Aug 2011 22:47:49 +0000 (+0000) Subject: Fix:build/cmake:Fix building garmin plugin with cmake 2.8.5 X-Git-Tag: navit-0.5.0.5194svn~505 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=27d45946ef20c57fea2e3bc61575494203d6cd83;p=profile%2Fivi%2Fnavit.git Fix:build/cmake:Fix building garmin plugin with cmake 2.8.5 git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4690 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- diff --git a/navit/navit/map/garmin/CMakeLists.txt b/navit/navit/map/garmin/CMakeLists.txt index 7b04954..b52c8c5 100644 --- a/navit/navit/map/garmin/CMakeLists.txt +++ b/navit/navit/map/garmin/CMakeLists.txt @@ -1,5 +1,7 @@ add_executable(gentypes gentypes.c) +include_directories( ${CMAKE_CURRENT_BINARY_DIR}) + # add the command to generate the source code add_custom_command ( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/g2nbuiltin.h @@ -8,7 +10,3 @@ add_custom_command ( ) module_add_library(map_garmin garmin.c gar2navit.c g2nbuiltin.h) -set_property( - TARGET map_garmin - APPEND PROPERTY COMPILE_FLAGS "-I${CMAKE_CURRENT_BINARY_DIR}" -)