Hello all,
I'm using Find_Library call at several places to locate libraries.

The document says if Find_Library finds the library it stores the path in a
cache variable, and Find_Library does not gets called again for the
variable.

Now If I run configure, Find_Library seems to be trying to find the library
again. What I expect is, CMake first reads the CMakeCache.txt file, and then
calls Find_Library. Now that variable is cached, Find_Library should not be
trying to find the library again.

I've a set of .cmake scripts and include them in master file using Include
call. Most of the .cmake files contain Find_Library calls and nothing else.
What I've observed is, CMake is taking longer to configure with these cmake
scripts included. If I comment them out then configure is pretty fast. As
these .cmake files contain Find_Library and nothing else, I feel
Find_Library is trying to find library again and again. Am I missing
something here ?

I'm using Cmake-2.8.1 RC3 on Windows.

Surya
_______________________________________________
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