We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe64770 commit 34275cbCopy full SHA for 34275cb
CMakeLists.txt
@@ -108,6 +108,19 @@ target_link_libraries(tiledbjni
108
${JAVA_JVM_LIBRARY}
109
)
110
111
+# Temporary work-around for windows linkage issue with TileDB 2.9
112
+if (WIN32)
113
+ get_target_property(LIBMAGIC_LIB libmagic IMPORTED_LOCATION)
114
+ get_filename_component(LIBMAGIC_LIB_PATH ${LIBMAGIC_LIB} DIRECTORY)
115
+ find_library(PCRE2_POSIX pcre2-posix REQUIRED PATHS ${LIBMAGIC_LIB_PATH})
116
+ find_library(PCRE2_8 pcre2-8 REQUIRED PATHS ${LIBMAGIC_LIB_PATH})
117
+ target_link_libraries(tiledbjni
118
+ PRIVATE
119
+ ${PCRE2_POSIX}
120
+ ${PCRE2_8}
121
+ )
122
+endif()
123
+
124
if (TARGET TileDB::tiledb_static)
125
target_link_libraries(tiledbjni
126
PRIVATE
0 commit comments