Skip to content

Commit 34275cb

Browse files
ihnortonDimitrisStaratzis
authored andcommitted
WIP add temporary linkage for pcre
1 parent fe64770 commit 34275cb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,19 @@ target_link_libraries(tiledbjni
108108
${JAVA_JVM_LIBRARY}
109109
)
110110

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+
111124
if (TARGET TileDB::tiledb_static)
112125
target_link_libraries(tiledbjni
113126
PRIVATE

0 commit comments

Comments
 (0)