[CMake] Skipping PATH when using find_library

Mika.Rajala at patria.fi Mika.Rajala at patria.fi
Mon Mar 15 02:15:43 EDT 2010


I did try that already.

Thanks anyway, I'll try to figure out what is wrong.

-mika



                                                                           
             Philip Lowman                                                 
             <philip at yhbt.com>                                             
             Sent by:                                                   To 
             cmake-bounces at cma         Mika.Rajala at patria.fi               
             ke.org                                                     cc 
                                       cmake at cmake.org                     
                                                                   Subject 
             12.03.2010 16:51          Re: [CMake] Skipping PATH when      
                                       using find_library                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




On Thu, Mar 11, 2010 at 3:00 AM,  <Mika.Rajala at 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




More information about the CMake mailing list