Re: [CMake] Skipping PATH when using find_library

2010-03-15 Thread Mika . Rajala
I did try that already.

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

-mika



   
 Philip Lowman 
 phi...@yhbt.com 
 Sent by:   To 
 cmake-boun...@cma mika.raj...@patria.fi   
 ke.org cc 
   cmake@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.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


___
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


Re: [CMake] Skipping PATH when using find_library

2010-03-12 Thread Philip Lowman
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


Re: [CMake] Skipping PATH when using find_library

2010-03-11 Thread Mika . Rajala
More reading documentation and attempts... but still not working.

Maybe there is no way?



   
 mika.raj...@patri 
 a.fi  
 Sent by:   To 
 cmake-boun...@cma mika.raj...@patria.fi   
 ke.org cc 
   cmake@cmake.org,
   cmake-boun...@cmake.org 
 04.03.2010 15:28  Subject 
   Re: [CMake] Skipping PATH when  
   using find_library  
   
   
   
   
   
   




Still unsolved.

Meanwhile I have made a horrible kludge that works for now, but which i
really wouldn't want to leave as it is.

I think my problems could be solved if i could define the version of the
library which to look for.

Is this somehow possible?

I'll look into the documentation once more on this.

DLL Hell.

-mika




 mika.raj...@patri
 a.fi
 Sent by:   To
 cmake-boun...@cma cmake@cmake.org
 ke.org cc

   Subject
 03.03.2010 13:22  [CMake] Skipping PATH when using
   find_library











Hi

I have read the documentation on find_library command, and i think what i
need is possible, but i just can't figure it out.

I'd like to run the find_library command, so that it doesn't use the
windows environment variable PATH for folders to look from.

Is this possible with cmake?

I tried a few of the additional commands for find_library, but it didn't
seem to work.

These few include NO_SYSTEM_ENVIRONMENT_PATH and NO_DEFAULT_PATH

And additionally, I have a list of folders where to look from, currently i
provide it as HINTS but i did try giving it as PATHS

___
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


___
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


___
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


Re: [CMake] Skipping PATH when using find_library

2010-03-04 Thread Mika . Rajala
Still unsolved.

Meanwhile I have made a horrible kludge that works for now, but which i
really wouldn't want to leave as it is.

I think my problems could be solved if i could define the version of the
library which to look for.

Is this somehow possible?

I'll look into the documentation once more on this.

DLL Hell.

-mika



   
 mika.raj...@patri 
 a.fi  
 Sent by:   To 
 cmake-boun...@cma cmake@cmake.org 
 ke.org cc 
   
   Subject 
 03.03.2010 13:22  [CMake] Skipping PATH when using
   find_library
   
   
   
   
   
   





Hi

I have read the documentation on find_library command, and i think what i
need is possible, but i just can't figure it out.

I'd like to run the find_library command, so that it doesn't use the
windows environment variable PATH for folders to look from.

Is this possible with cmake?

I tried a few of the additional commands for find_library, but it didn't
seem to work.

These few include NO_SYSTEM_ENVIRONMENT_PATH and NO_DEFAULT_PATH

And additionally, I have a list of folders where to look from, currently i
provide it as HINTS but i did try giving it as PATHS

___
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


___
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