Skip to content

Commit

Permalink
Clean the build script.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Jan 27, 2014
1 parent 324ab8b commit 1cea492
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,11 @@ if (JACOP_PATH)
find_package(JNI)
find_package(Java)
if (JNI_FOUND AND JAVA_FOUND)
# Workaround to find libmawt.so on Ubuntu 10.04.
# Add libmawt.so to JNI_LIBRARIES to avoid linkage errors on Ubuntu 10.04.
foreach (arch amd64 i386)
set(LIBMAWT_PATH /usr/lib/jvm/java-6-openjdk/jre/lib/${arch}/xawt/libmawt.so)
if (EXISTS ${LIBMAWT_PATH})
message("LIBMAWT_PATH: ${LIBMAWT_PATH}")
message("JNI_LIBRARIES: ${JNI_LIBRARIES}")
set(JNI_LIBRARIES ${JNI_LIBRARIES} ${LIBMAWT_PATH})
message("JNI_LIBRARIES: ${JNI_LIBRARIES}")
break ()
endif ()
endforeach ()
Expand Down

0 comments on commit 1cea492

Please sign in to comment.