Skip to content

Commit

Permalink
zhady: don't use wildcard
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugobros3 committed Jul 13, 2024
1 parent 79c45c9 commit 1de6b76
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zhady/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,18 @@ if (SWIG_FOUND AND JNI_FOUND AND Java_FOUND)

include(UseJava)
get_property(zhady_jar_sources TARGET zhady_shared_lib PROPERTY SWIG_SUPPORT_FILES)
set(CMAKE_JAVA_COMPILE_FLAGS ${CMAKE_CURRENT_BINARY_DIR}/java_sources/de/unisaarland/zhady/*.java)
get_property(zhady_jar_sources_dir TARGET zhady_shared_lib PROPERTY SWIG_SUPPORT_FILES_DIRECTORY)
#set(CMAKE_JAVA_COMPILE_FLAGS ${CMAKE_CURRENT_BINARY_DIR}/java_sources/de/unisaarland/zhady/*.java)
#set(CMAKE_JAVA_COMPILE_FLAGS "-sourcepath" "${CMAKE_CURRENT_BINARY_DIR}/java_sources/")

if (TARGET vcc_lib)
get_property(vcc_java_sources TARGET vcc_swig_c PROPERTY SWIG_SUPPORT_FILES)
list(APPEND zhady_jar_sources ${vcc_java_sources})
endif ()

# message("Zhady sources: ${zhady_jar_sources}")
# message("Zhady sources dir: ${zhady_jar_sources_dir}")
set(CMAKE_JAVA_INCLUDE_PATH ${CMAKE_CURRENT_BINARY_DIR}/java_sources/)
add_jar(zhady_jar SOURCES ${zhady_jar_sources})

install(TARGETS zhady_shared_lib EXPORT shady_export_set)
Expand Down

0 comments on commit 1de6b76

Please sign in to comment.