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

Natalie Tasman natalie.tasman at insilicos.com
Thu Jun 7 16:54:49 EDT 2012


Those commands are from my CMakeLists.txt file, before find_packages was called.

-Natalie

On Thu, Jun 7, 2012 at 3:03 AM, Mathias Gaunard
<mathias.gaunard at ens-lyon.org> wrote:
> 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.
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list