Skip to content

Commit

Permalink
Returned 3.3.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
barynton committed Mar 17, 2023
1 parent 7addca9 commit ae2ffcf
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 3 deletions.
10 changes: 9 additions & 1 deletion recipes/lightgbm/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
sources:
"3.3.2":
url: "https://github.com/microsoft/LightGBM/archive/refs/tags/v3.3.2.tar.gz"
sha256: "d7c0f842e94165578d5a0c046ca942838d1574149f98c84400ce511239d17b9f"
"3.3.5":
url: "https://github.com/microsoft/LightGBM/archive/refs/tags/v3.3.5.tar.gz"
sha256: "16fb9e299ced37be5ac69dd510e7323337e623019c9c578628c43b285f764be7"
patches:
"3.3.5":
"3.3.2":
- patch_file: "patches/0001-fix-includes.patch"
base_path: "source_subfolder"
- patch_file: "patches/0002-fix-openmp-clang.patch"
base_path: "source_subfolder"
"3.3.5":
- patch_file: "patches/0001-fix-includes.patch"
base_path: "source_subfolder"
- patch_file: "patches/0003-fix-openmp-clang.patch"
base_path: "source_subfolder"
4 changes: 2 additions & 2 deletions recipes/lightgbm/all/patches/0002-fix-openmp-clang.patch
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95610d55..2b48507d 100644
index 109a252d..e5d46bce 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -444,7 +444,7 @@ if(USE_MPI)
@@ -415,7 +415,7 @@ if(USE_MPI)
endif(USE_MPI)

if(USE_OPENMP)
Expand Down
13 changes: 13 additions & 0 deletions recipes/lightgbm/all/patches/0003-fix-openmp-clang.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 95610d55..2b48507d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -444,7 +444,7 @@ if(USE_MPI)
endif(USE_MPI)

if(USE_OPENMP)
- if(CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")
+ if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang")
TARGET_LINK_LIBRARIES(lightgbm OpenMP::OpenMP_CXX)
TARGET_LINK_LIBRARIES(_lightgbm OpenMP::OpenMP_CXX)
endif()
2 changes: 2 additions & 0 deletions recipes/lightgbm/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
"3.3.2":
folder: all
"3.3.5":
folder: all

0 comments on commit ae2ffcf

Please sign in to comment.