Dependencies issues when building or-tools 7.0 from Cmake error #1167
Labels
Build: CMake
CMake based build issue
Duplicate
Feature Request
Missing Feature/Wrapper
OS: Linux
GNU/Linux OS
OS: Mac
MacOS
OS: Windows
Windows OS
Milestone
I am sorry if I should have reopened my previous issues. I found more bugs when building and installing the latest version of CMake.
Here is what I tested to "solve" the problem :
TLDR
To build and use or-tools 7.0 when downloading the source code from the latest release (as of 2019/03/29):
Detail
With default sources :
/or-tools-7.0-build/cbc-src does not contain a CMakeLists.txt file.
Test 1
Ouput :
Building and testing works.
No warning during the installation but will cause an error when trying to use ortools::ortools target (missing targets)
Test 2
-> Same output as before
For the following : tag is bf29470 and the patch is kept.
Test 3
Change path in cbc.CMakeLists.txt according to Building or-tools 7.0 from Cmake error #1159
Add absl-cpp-src/CMakeLists.txt at line 127 : message(STATUS "ABSL install enabled ? ${ABSL_ENABLE_INSTALL}")
ABSL install enabled ? FALSE .ABSL_ENABLE_INSTALL is set to false at line 42 because we are using abseil as a subproject in or-tools.
Change set(ABSL_ENABLE_INSTALL FALSE) to TRUE in absl-cpp-src/CMakeLists.txt at line 42
Ouput :
Building and testing works.
When trying to use ortools::ortools after installation in a new project (using the cmake tutorial provided with or-tools):
Test 4
Ouput :
Building and testing works.
When trying to use ortools::ortools after installation in a new project (using the cmake tutorial provided with or-tools):
Test 5
Ouput :
Everything works fine even with the CMake error but I could not find why.
The text was updated successfully, but these errors were encountered: