diff --git a/CMakeLists.txt b/CMakeLists.txt index d4dfd8a..402cfec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -121,7 +121,7 @@ if(JNI_FOUND AND Java_FOUND) if(JNIDIR) install(DIRECTORY DESTINATION ${JNIDIR}) - ilink(${CMAKE_INSTALL_PREFIX}/${SWIPL_INSTALL_ARCH_LIB}/${jpl_module}${JPLEXT} + ilink(/${SWIPL_INSTALL_ARCH_LIB}/${jpl_module}${JPLEXT} ${JNIDIR}/${jpl_module}${JPLEXT}) endif()