Commit 3cdbe63a authored by johan's avatar johan
Browse files

Fix commit 32aef39c

We need the java dependency in cmake to run the tests
add it only when jni is built
parent 0ca0231b
......@@ -26,10 +26,6 @@ include(CMakePushCheckState)
include(CMakePackageConfigHelpers)
cmake_minimum_required(VERSION 3.0)
project(lime VERSION 0.0.1 LANGUAGES CXX C)
set(LIME_SO_VERSION "0")
set(LIME_VERSION ${PROJECT_VERSION})
option(ENABLE_SHARED "Build shared library." YES)
option(ENABLE_STATIC "Build static library." YES)
......@@ -41,6 +37,20 @@ option(ENABLE_PROFILING "Enable profiling, GCC only" NO)
option(ENABLE_C_INTERFACE "Enable support of C89 foreign function interface" NO)
option(ENABLE_JNI "Enable support of Java foreign function interface" NO)
set (LANGUAGES_LIST CXX)
if (ENABLE_C_INTERFACE)
set (LANGUAGES_LIST ${LANGUAGES_LIST} C)
endif()
if (ENABLE_JNI)
set (LANGUAGES_LIST ${LANGUAGES_LIST} Java)
endif()
project(lime VERSION 0.0.1 LANGUAGES ${LANGUAGES_LIST})
set(LIME_SO_VERSION "0")
set(LIME_VERSION ${PROJECT_VERSION})
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
if(NOT CPACK_GENERATOR AND NOT CMAKE_INSTALL_RPATH AND CMAKE_INSTALL_PREFIX)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment