[CMake] search include path from find_path failure
David Cole
david.cole at kitware.com
Thu Jun 21 09:28:49 EDT 2012
If you want to find a library, then use find_library. find_path is for *any* type of file, and only matches on file name, find_path does not know anything special about libraries. find_library does know some special stuff about libraries (like to look for them in directories listed in the LIB and PATH environment variables).
HTH,
David
On Jun 21, 2012, at 7:03 AM, hce <jupiter.hce at gmail.com> wrote:
> Hi,
>
> I am running 2.8.8 on Linux. I have a library already been set up in
> environment, I can see it in both LD_LIBRARY_PATH and $PATH, but when I was
> compiling another source code which calling find_path() to check the library
> package include path, it failed. In general, how the cmake find_path() to
> find include path works? Is there any equivalent Linux shell command I can
> use to check to the library's include path?
>
> Thank you.
>
> --
> View this message in context: http://cmake.3232098.n2.nabble.com/search-include-path-from-find-path-failure-tp7580481.html
> Sent from the CMake mailing list archive at Nabble.com.
> --
>
> 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