Skip to content
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

[CMake] USE_SCIP=OFF not working #2129

Closed
joshuaeckroth opened this issue Aug 6, 2020 · 5 comments
Closed

[CMake] USE_SCIP=OFF not working #2129

joshuaeckroth opened this issue Aug 6, 2020 · 5 comments
Assignees
Labels
Bug Build: CMake CMake based build issue
Projects
Milestone

Comments

@joshuaeckroth
Copy link

joshuaeckroth commented Aug 6, 2020

libscip (SCIP optimization library) is suddenly required for any cmake C++ build, ignoring USE_SCIP option.

This line: https://github.com/google/or-tools/blame/stable/cmake/cpp.cmake#L222 requires libscip, ignoring the USE_SCIP setting. Removing this line allows a successful build (assuming one does not wish to use scipopt library).

@joshuaeckroth
Copy link
Author

This is important for commercial uses since SCIP's license is not open source.

@Mizux Mizux self-assigned this Aug 6, 2020
@Mizux Mizux added Bug Build: CMake CMake based build issue labels Aug 6, 2020
@Mizux Mizux added this to To do in ToDo via automation Aug 6, 2020
@Mizux Mizux added this to the v7.9 milestone Aug 6, 2020
@Mizux Mizux changed the title libscip (SCIP optimization library) is suddenly required for any cmake C++ build, ignoring USE_SCIP option [CMake] USE_SCIP=OFF not working Aug 6, 2020
@Mizux Mizux moved this from To do to In progress in ToDo Aug 6, 2020
@Mizux
Copy link
Collaborator

Mizux commented Aug 6, 2020

For release v7.8 we get the agreement to integrate SCIP in our build process, but yes you still need to comply with SCIP license limitation if you want to use it (only the LinearSolver component use it).

Having the ability to disable SCIP (i.e. having USE_SCIP=OFF) is a target goal, I'll try to fix it ASAP

Should reuse this instead:

$<$<BOOL:${USE_SCIP}>:libscip>

@lperron
Copy link
Collaborator

lperron commented Aug 6, 2020 via email

@lperron
Copy link
Collaborator

lperron commented Aug 6, 2020

Do you think this is still a problem ?
I checked with the SCIP team before doing the change.

@Mizux Mizux closed this as completed Aug 6, 2020
ToDo automation moved this from In progress to Done Aug 6, 2020
@lperron
Copy link
Collaborator

lperron commented Aug 11, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Build: CMake CMake based build issue
Projects
ToDo
  
Done
Development

No branches or pull requests

3 participants