<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><div>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.</div>
<div>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.</div><div>I fixed this issue by reverting FindZLIB.cmake from 2.8.</div>
<div><br></div><div>It is possible to replace this heavy<div>STRING(REGEX REPLACE ".*#define ZLIB_VERSION \"([0-9]+)\\.([0-9]+)\\.([0-9]+)\".*" "\\1.\\2.\\3" ZLIB_VERSION_STRING "${ZLIB_H}")</div>
<div>with something more light-weight in cmake-2.8/Modules/FindZLIB.cmake?</div></div></span>