diff options
| author | rikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-08-18 22:10:16 +0000 |
|---|---|---|
| committer | rikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-08-18 22:10:16 +0000 |
| commit | b2f0b57a6d788a98721352ab9c68780fc383ac4d (patch) | |
| tree | afb2c15559879c978f7e80299de1a523d4b7f589 /CMakeLists.txt | |
| parent | dd930c1c450f00b8a217361642bb16b2203af4bb (diff) | |
| download | navit-b2f0b57a6d788a98721352ab9c68780fc383ac4d.tar.gz | |
Add:Android:Warn about old ant version
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5209 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'CMakeLists.txt')
| -rwxr-xr-x | CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 06cc8e0c0..ecd5030fc 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -536,6 +536,11 @@ if(ANDROID) find_program(ANT_LOCATION NAMES ant) if (NOT ANT_LOCATION) message_error("Could not find ant. Please install ant and add it to the search path.") + else() + execute_process(COMMAND ${ANT_LOCATION} WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/cmake RESULT_VARIABLE ANT_VERSION_OK OUTPUT_QUIET ERROR_QUIET) + if(ANT_VERSION_OK GREATER 0) + message(WARNING "Old ant version detected. If you need crash reporter, update to at least ant 1.8") + endif() endif() if (NOT ANDROID_LOCATION) message_error( "Could not find 'Android SDK and AVD Manager'. Please install the android sdk and add the <android-sdk>/tools directory to the search path.") |
