diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-15 10:57:54 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-07-15 10:57:54 (GMT) |
commit | d56955bcd629d47333a3b1c65e9d507063f51cbf (patch) | |
tree | 224f284921c6ec34cee45ee5389ed846d6c28571 /src/bindings/swig | |
parent | 61439d49e15045bbe9c3cf55b62fc15909dd48e2 (diff) | |
download | uscxml-d56955bcd629d47333a3b1c65e9d507063f51cbf.zip uscxml-d56955bcd629d47333a3b1c65e9d507063f51cbf.tar.gz uscxml-d56955bcd629d47333a3b1c65e9d507063f51cbf.tar.bz2 |
Small ant fix and retriggering travis
Diffstat (limited to 'src/bindings/swig')
-rw-r--r-- | src/bindings/swig/java/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bindings/swig/java/CMakeLists.txt b/src/bindings/swig/java/CMakeLists.txt index f00d903..16295a1 100644 --- a/src/bindings/swig/java/CMakeLists.txt +++ b/src/bindings/swig/java/CMakeLists.txt @@ -8,6 +8,11 @@ else() message(STATUS "No JNI libraries found - not building Java wrappers") return() endif() +FIND_PROGRAM(ANT_EXECUTABLE ant PATHS $ENV{ANT_HOME}/bin ENV PATH ) +if (NOT ANT_EXECUTABLE) + message(STATUS "No apache ant found - not building Java wrappers") + return() +endif() include_directories(${CMAKE_CURRENT_SOURCE_DIR}) @@ -34,7 +39,6 @@ set_target_properties(uscxmlNativeJava PROPERTIES COMPILE_FLAGS "-DSWIG") swig_link_libraries(uscxmlNativeJava uscxml) set(USCXML_LANGUAGE_BINDINGS ${USCXML_LANGUAGE_BINDINGS} PARENT_SCOPE) -FIND_PROGRAM(ANT_EXECUTABLE ant PATHS $ENV{ANT_HOME}/bin ENV PATH ) if (ANT_EXECUTABLE) set(JAR_EXCLUDE_DEBUG OFF) set(JAR_EXCLUDE_JNI OFF) |