[CMake] find_path / find_package hardcoded path
Rolf Eike Beer
eike at sf-mail.de
Wed Aug 28 06:45:02 EDT 2019
Am 2019-08-28 12:28, schrieb Ran Regev:
> I think you can also add "PATHS" or "HINTS" to find_package.
Yes, but this has a different purpose. It's idea is to provide places to
look at based on other things already found, things that would work
independent of the machine.
The plan here is to provide information about the local directories, and
those should not end up in CMakeLists.txt as they are totally
meaningless when switching to a different machine.
One could use an initial cache file for this if this has to be done over
and over again on the same machine, or add a shell alias (or a shell
alias to the cache file, which is more flexible).
Eike
More information about the CMake
mailing list