Re: [CMake] search include path from find_path failure

2012-06-21 Thread David Cole
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 a

[CMake] search include path from find_path failure

2012-06-21 Thread hce
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() t