On Thu, Mar 11, 2010 at 3:00 AM,  <mika.raj...@patria.fi> wrote:
> More reading documentation and attempts... but still not working.
>
> Maybe there is no way?

The following works fine for me on CMake 2.8.0.

message("PATH = $ENV{PATH}")
find_library(FOO foo NO_SYSTEM_ENVIRONMENT_PATH)

If you place a foo.lib in your PATH CMake shouldn't find it with that
option.  NO_DEFAULT_PATH should work as well although it excludes all
of the default search paths not just the ones specified by the PATH
environment variable.

See:
http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:find_library

-- 
Philip Lowman
_______________________________________________
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

Reply via email to