From 25c564273ee3247b7c36f29089e36765526c4e9f Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Tue, 9 Jan 2018 15:19:24 +0100 Subject: [PATCH] Do not add linphonej target if not enabled --- coreapi/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/coreapi/CMakeLists.txt b/coreapi/CMakeLists.txt index cbb971d70..f7ae0431f 100644 --- a/coreapi/CMakeLists.txt +++ b/coreapi/CMakeLists.txt @@ -254,7 +254,9 @@ if(ENABLE_SHARED) set_target_properties(linphone PROPERTIES PREFIX "lib") elseif(ANDROID) target_link_libraries(linphone PUBLIC "log" ${SUPPORT_LIBRARIES} ${CPUFEATURES_LIBRARIES}) - add_dependencies(linphone linphonej) + if(ENABLE_JAVA_WRAPPER) + add_dependencies(linphone linphonej) + endif() endif() if(MSVC) if(CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")