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

utils.cmake conflict #134

Open
JasonMarechal25 opened this issue Sep 17, 2024 · 0 comments
Open

utils.cmake conflict #134

JasonMarechal25 opened this issue Sep 17, 2024 · 0 comments

Comments

@JasonMarechal25
Copy link

What version of OR-Tools and what language are you using?
Version: main/v9.10
Language: C++

Or-tools-rte and or-tools can be integrated transparently through CMake FetchContent mecanism. One issue arise when a client define a utils.cmake file in CMAKE_MODULE_PATH. Or-tools defines a utils.cmake file and appends it to CMAKE_MODULE_PATH with include. When trying to solve names, CMake behaves like c++ INCLUDE_PATH, meaning it's first come first serve. In this example utils.cmake will be found in the client path, not or-tools and thus or-tools will be missing functions defined in the file.

Example :

Propositions:

  • Open an issue with or-tools and ask them to use a less generic name.
  • Create a patch to rename the file as utils-or-tools.cmake and update the corresponding include directive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant