[CMake] using cmake to find libs

William A. Hoffman billlist at nycap.rr.com
Wed Aug 3 08:37:29 EDT 2005


CMake does not currently look at INCLUDE_DIRECTORIES or LINK_DIRECTORIES in the FIND_XXXX commands,
although that is not a bad idea.   Although it is a bit of a chicken and the egg problem.   
How would it find the first one?  CMake does however look in CMAKE_LIBRARY_PATH and CMAKE_INCLUDE_PATH environment variables.  Those variables have the same syntax as the local PATH variable,
windows ; separated, and unix : seperated. 

-Bill


At 08:24 AM 8/3/2005, Doug Henry wrote:
>If I have a shared custom toolchain on a remote system, and mounted locally under /tools for example, there does not seem to be a way to use the cmake modules to find these libraries/headers/etc.  If I have -I/tools/include and -L/tools/lib set, shouldn't the first headers and libs found be the ones in those directories since they WILL be the first ones found by the compiler?  I would consider this to be a fairly large deficiency, if I have missed something please let me know.
>
>-doug
>
>_______________________________________________
>CMake mailing list
>CMake at cmake.org
>http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list