summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-03-15 22:15:14 +0000
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>2011-03-15 22:15:14 +0000
commitee5d72ffc6db9081bc88d1fd3f0e6a09cfc440ea (patch)
tree7fdec7b9e877acaaa3a834eacd4ca5742522a72c /cmake
parent31b54778718c84eb440cc319a69650cc9ba8841a (diff)
downloadnavit-ee5d72ffc6db9081bc88d1fd3f0e6a09cfc440ea.tar.gz
Fix:build/cmake:Make compatible to cmake 2.6
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@4350 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'cmake')
-rw-r--r--cmake/copy_files.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmake/copy_files.cmake b/cmake/copy_files.cmake
index c5dc8b565..f9dca52f6 100644
--- a/cmake/copy_files.cmake
+++ b/cmake/copy_files.cmake
@@ -3,13 +3,13 @@ message("Copy '${GLOB_EXP}' to '${DST}'")
file(GLOB SRC_FILES ${GLOB_EXP})
if ( SRC_FILES )
- if ( LOWER )
- foreach (FILE ${SRC_FILES})
+ foreach (FILE ${SRC_FILES})
+ if ( LOWER )
get_filename_component(FILEN_NAME ${FILE} NAME)
string(TOLOWER ${FILEN_NAME} FILEN_NAME_LOWER)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${FILE} ${DST}/${FILEN_NAME_LOWER})
- endforeach()
- else()
- file(COPY ${SRC_FILES} DESTINATION ${DST})
- endif( LOWER )
+ else()
+ execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${FILE} ${DST}/)
+ endif( LOWER )
+ endforeach()
endif()