File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.0 )
1+ cmake_minimum_required (VERSION 3.5 )
22
33project (builtin-adapter)
44
@@ -17,3 +17,17 @@ add_library(${TARGET} SHARED BuiltinAdapter.cpp)
1717include_directories (${JNI_INCLUDE_DIRS} ${REINDEXER_INCLUDE_DIRS} )
1818
1919target_link_libraries (${TARGET} reindexer_server_library reindexer_server_resources ${REINDEXER_LIBRARIES} )
20+
21+ # Workaround for macOS to propagate a correct OpenSSL lib path to Reindexer.
22+ if (APPLE )
23+ find_package (OpenSSL )
24+ if (OpenSSL_FOUND)
25+ if (NOT DEFINED OPENSSL_LIB_PATH)
26+ get_filename_component (OPENSSL_LIB_PATH ${OPENSSL_CRYPTO_LIBRARY} DIRECTORY )
27+ endif ()
28+ set_target_properties (${TARGET} PROPERTIES
29+ BUILD_WITH_INSTALL_RPATH TRUE
30+ INSTALL_RPATH ${OPENSSL_LIB_PATH}
31+ )
32+ endif ()
33+ endif ()
Original file line number Diff line number Diff line change 179179 </plugin >
180180
181181 <plugin >
182- <groupId >com.googlecode .cmake-maven-project </groupId >
182+ <groupId >io.github .cmake-maven-plugin </groupId >
183183 <artifactId >cmake-maven-plugin</artifactId >
184- <version >3.19.2 -b1</version >
184+ <version >4.0.3 -b1</version >
185185 <configuration >
186186 <generator >Unix Makefiles</generator >
187187 <sourcePath >${cmake.source.directory} </sourcePath >
188- <targetPath >${cmake.binary.directory} </targetPath >
189188 <projectDirectory >${cmake.binary.directory} </projectDirectory >
190189 </configuration >
191190 <executions >
You can’t perform that action at this time.
0 commit comments