if (Java_JAVAC_EXECUTABLE)
set(JRUBY_SUPPORT TRUE)
set(CMAKE_JAVA_COMPILE_FLAGS -source 1.6 -target 1.6)
set(CMAKE_JAVA_COMPILE_FLAGS -source 7 -target 7)
add_definitions(-DUSE_JRUBY_SUPPORT)
endif()