hce | 21 Jun 2012 13:07
Picon

find_path() to search include path failed

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? What is equivalent Linux shell command I can check
to make sure the library's include path is setting properly?

Thank you.

--
View this message in context: http://cmake.3232098.n2.nabble.com/find-path-to-search-include-path-failed-tp7580482.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

Andreas Pakulat | 21 Jun 2012 13:31
Picon
Picon
Gravatar

Re: find_path() to search include path failed

Hi,

On Thu, Jun 21, 2012 at 1:07 PM, hce <jupiter.hce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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? What is equivalent Linux shell command I can check
to make sure the library's include path is setting properly?

You can find extensive explanation where find_path works on the different platforms in the CMake documentation:

Andreas
--

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
hce | 22 Jun 2012 06:33
Picon

Re: find_path() to search include path failed


Andreas Pakulat-2 wrote
> 
> You can find extensive explanation where find_path works on the different
> platforms in the CMake documentation:
> http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_path
> 

Thanks Andreas, but I am not looking for how to use find_path command. What
I really want to know is the function mechanism that the find_path used to
search the library include path. Does the find_path look at Linux
environment PATH to find the include path, or does the find_path look at
environment LD_LIBRARY_PATH to decide whether the include path exists or
not? 

I try to debug my library setting while it has already been set in Linux
environment PATH and LD_LIBRARY_PATH, but the find_path could not find it.
Having said that, it is not find_path problem, it is my library setting
problem, I try to fix my library setting, but I have to know the algorithm
the find_path

Thank you. 

--
View this message in context: http://cmake.3232098.n2.nabble.com/find-path-to-search-include-path-failed-tp7580482p7580510.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

Andreas Pakulat | 22 Jun 2012 07:22
Picon
Picon
Gravatar

Re: find_path() to search include path failed

Hi,

On Fri, Jun 22, 2012 at 6:33 AM, hce <jupiter.hce-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:

Andreas Pakulat-2 wrote
>
> You can find extensive explanation where find_path works on the different
> platforms in the CMake documentation:
> http://cmake.org/cmake/help/v2.8.8/cmake.html#command:find_path
>

Thanks Andreas, but I am not looking for how to use find_path command. What
I really want to know is the function mechanism that the find_path used to
search the library include path. Does the find_path look at Linux
environment PATH to find the include path, or does the find_path look at
environment LD_LIBRARY_PATH to decide whether the include path exists or
not?

I understood your intent and I'm telling you its all there written down in the CMake documentation for the function. Just scroll past the first two or three paragraphs and then you'll find extensive documentation which cmake and environment variables are searched and in which order.

Andreas
--

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

Gmane