FindCPLEX.cmake definition of IL_STD and other libraries #3908
Unanswered
TryerGit
asked this question in
Build and configuration issues
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I am looking at the repository provided
FindCPLEX.cmake
file available at:https://github.com/google/or-tools/blob/stable/cmake/FindCPLEX.cmake
I notice that this file refers to the following CPLEX documentation:
https://www.ibm.com/docs/en/icos/12.10.0?topic=cplex-setting-up-gnulinuxmacos
The CPLEX documentation requires one to define
IL_STD
, and also specification of libraries:-lcplex -lm -lpthread
during linking.Contrasting this repository's
FindCPLEX.cmake
with the one found at AMPL https://github.com/ampl/mp/blob/master/support/cmake/FindCPLEX.cmakeI notice that the latter too does not specify the libraries
-lcplex -lm -lpthread
but does define-DIL_STD
I have been able to compile my CPLEX project using the
FindCPLEX.cmake
file provided at this repository. I am obtaining a bunch of linking errors possibly because the libaries andIL_STD
are not defined. Could you please let me know if there is a working CPLEX example that makes use ofFindCPLEX.cmake
in the repository?I am new to CMAKE. I used raw make before and I used to compile and link to CPLEX thus:
I am new to CMake and in order to use ORTools, I am slowly transitioning to CMake and hence this question. While I know that your repository does not support CPLEX (?) as it does Gurobi and SCIP, could you please suggest what changes I should make in my
CMakeLists.txt
file to get CPLEX to work alongside theFindCPLEX.cmake
file you have provided?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions