diff options
Diffstat (limited to 'src/bindings/swig/java/CMakeLists.txt')
-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) |