[CMake] find_package: how to require same directory prefix for both lib and header files?

Mathias Gaunard mathias.gaunard at ens-lyon.org
Thu Jun 7 06:03:47 EDT 2012


On 07/06/2012 01:20, Natalie Tasman wrote:
> Using cmake 2.8.8, I know that I can add "backup" or "fallback" search
> directories for find_package, using
>
>   INCLUDE_DIRECTORIES(/opt/local/include)
>   LINK_DIRECTORIES(/opt/local/lib)
>
> In this case, cmake first searches its default paths and THEN the
> specified alternate.

I don't see the link between find_package and those two commands.

Those two commands should never be called in any Find module.


More information about the CMake mailing list