[CMake] Add search paths for FIND_PACKAGE ?
Brandon Van Every
bvanevery at gmail.com
Mon Nov 19 14:17:22 EST 2007
On Nov 19, 2007 9:00 AM, Mike Jackson <imikejackson at gmail.com> wrote:
>
> The important part is that I am looking for an environment variable to help
> find the paths/libraries. This type of thing could be added the the
> FindXXX.cmake files so if someone has their libs installed in non-standard
> locations they can set an env variable and let cmake find the package that
> way.
That makes sense if the library in question has a standard environment
variable convention. Otherwise, this isn't CMake's job. Dealing
with environmental pollution is a nightmare. -NOTFOUND is a much
better result than "found weird library that user forgot about that
isn't even compiled for the correct runtime." Realize, Windows is the
platform you're probably looking for this stuff. Keeping MSVC,
Cygwin, and MinGW build environments separate from each other is a
PITA.
Cheers,
Brandon Van Every
More information about the CMake
mailing list