Recently I updated to kubuntu 10.10, which ships new cmake 2.8.2 to me. Then
I noticed that KDevelop (IDE for C++) hangs when opening projects, since it
heavily dependent on cmake execution.
Then I inspected the process of configuring project with cmake using
--trace, and noticed, that multiple calls to STRING(REGEX ...) slows down
configure time from several seconds to almost 30 secs.
I fixed this issue by reverting FindZLIB.cmake from 2.8.
It is possible to replace this heavy
STRING(REGEX REPLACE ".*#define ZLIB_VERSION
\"([0-9]+)\\.([0-9]+)\\.([0-9]+)\".*" "\\1.\\2.\\3" ZLIB_VERSION_STRING
"${ZLIB_H}")
with something more light-weight in cmake-2.8/Modules/FindZLIB.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