-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
coin-cbc: migrate, add v2.10.11, apply autoreconf, use OpenBLAS, add GLPK support #23536
Open
valgur
wants to merge
7
commits into
conan-io:master
Choose a base branch
from
valgur:update/coin-cbc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
74371ea
coin-cbc: migrate to Conan v2
valgur 7175aa5
coin-cbc: add v2.10.11, run autoreconf, add more deps
valgur 347b5b1
Merge remote-tracking branch 'upstream/master' into update/coin-cbc
valgur c61e6b0
Use pkgconf/[>=2.2 <3]
valgur dedddb7
coin-cbc: add --disable-dependency-linking, disable F77 detection
valgur 54c0930
Use openblas/0.3.28 for cross-compilation support
valgur 92b87b3
coin-cbc: drop test_v1_package
valgur File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
sources: | ||
"2.10.11": | ||
url: "https://github.com/coin-or/Cbc/archive/releases/2.10.11.tar.gz" | ||
sha256: "1fb591dd88336fdaf096b8e42e46111e41671a5eb85d4ee36e45baff1678bd33" | ||
"2.10.5": | ||
url: "https://github.com/coin-or/Cbc/archive/releases/2.10.5.tar.gz" | ||
sha256: "cc44c1950ff4615e7791d7e03ea34318ca001d3cac6dc3f7f5ee392459ce6719" | ||
patches: | ||
"2.10.11": | ||
- patch_file: "patches/0002-pthreads4w.patch" | ||
"2.10.5": | ||
- patch_file: "patches/0001-no-pkg-config-check.patch" | ||
base_path: "source_subfolder" | ||
- patch_file: "patches/0002-pthreads4w.patch" | ||
base_path: "source_subfolder" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
recipes/coin-cbc/all/patches/0001-no-pkg-config-check.patch
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- a/Cbc/configure | ||
+++ b/Cbc/configure | ||
@@ -30970,7 +30970,7 @@ cat >>confdefs.h <<\_ACEOF | ||
#define CBC_THREAD 1 | ||
_ACEOF | ||
|
||
--- a/Cbc/configure.ac | ||
+++ b/Cbc/configure.ac | ||
@@ -179,7 +179,7 @@ | ||
if test "$enable_cbc_parallel" = yes; then | ||
# Define the preprocessor macro | ||
AC_DEFINE([CBC_THREAD],[1],[Define to 1 if the SMP version of Cbc should be compiled]) | ||
- if test $coin_cxx_is_cl = true ; | ||
+ if test "${with_pthreadsw32_lib+set}" = set ; | ||
then | ||
# TODO we should check whether the library works and pthread.h is indeed there | ||
|
||
AC_ARG_WITH(pthreadsw32-lib, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.1) | ||
project(test_package) | ||
|
||
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake) | ||
conan_basic_setup() | ||
cmake_minimum_required(VERSION 3.15) | ||
project(test_package LANGUAGES CXX) | ||
|
||
include(FindPkgConfig) | ||
|
||
pkg_check_modules(OsiCbc REQUIRED IMPORTED_TARGET osi-cbc) | ||
|
||
add_executable(${PROJECT_NAME} test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME} PRIVATE PkgConfig::OsiCbc) | ||
# The transitive 'coinutils' is added explicitly to work around the linked library order otherwise being: | ||
# OsiCbc CbcSolver Cbc bz2 z OsiCommonTests Osi Cgl ClpSolver Clp OsiClp CoinUtils | ||
# which causes CoinUtils to not find bz2 and z symbols. | ||
pkg_check_modules(OsiCbc REQUIRED IMPORTED_TARGET osi-cbc coinutils) | ||
add_executable(${PROJECT_NAME}_pkgconfig test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME}_pkgconfig PRIVATE PkgConfig::OsiCbc) | ||
|
||
find_package(coin-cbc CONFIG REQUIRED) | ||
add_executable(${PROJECT_NAME}_cmake test_package.cpp) | ||
target_link_libraries(${PROJECT_NAME}_cmake PRIVATE coin-cbc::coin-cbc) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't coin-cgl configured with transitive headers too ?