[CI] Stop vendoring libomp.dylib in MacOS Python wheels (#10440)

This commit is contained in:
Philip Hyunsu Cho
2024-06-18 19:17:02 -07:00
committed by GitHub
parent b9e5229ff2
commit 8689f0b562
5 changed files with 151 additions and 42 deletions

View File

@@ -24,3 +24,8 @@ target_include_directories(xgboost4j
${PROJECT_SOURCE_DIR}/dmlc-core/include)
set_output_directory(xgboost4j ${PROJECT_SOURCE_DIR}/lib)
# MacOS: Patch libxgboost4j.dylib to use @rpath/libomp.dylib
if(USE_OPENMP AND APPLE)
patch_openmp_path_macos(xgboost4j libxgboost4j)
endif()