[CMake] major performance problems on win32 with CMake 2.6.0 B6

Philip Lowman philip at yhbt.com
Sun Apr 6 14:40:06 EDT 2008


On Sun, Apr 6, 2008 at 12:17 PM, Bill Hoffman <bill.hoffman at kitware.com>
wrote:

> OK, I was able to reproduce the problem.  Seems to be something wrong with
> find_path.  It is taking 1 minute to run cmake on the tree with CVS CMake
> and 8 seconds with 2.4.8.   A quick profile showed it was spending all of
> its time in find_path for boost and sdl.
>
> The following very short cmakelist file reproduces the problem:
>
> cmake_minimum_required(VERSION 2.4)
> include(FindBoost)
>
> With 2.4 it takes .21 seconds, and with CVS CMake it takes 30 seconds!
>
> And, all the time is spent here:
>
> message("start find config.hpp")
> FIND_PATH(Boost_INCLUDE_DIR NAMES boost/config.hpp PATH_SUFFIXES
> ${SUFFIX_FOR_PATH} PATHS
>
>  # Look in other places.
>  ${BOOST_DIR_SEARCH}
>
>  # Help the user find it if we cannot.
>  DOC "The ${BOOST_INCLUDE_PATH_DESCRIPTION}"
> )
> message("end find config.hpp")
>
>
> So, there is something wrong with cmFindPathCommand.cxx.  I will look at
> this on Monday or maybe later today.  It is just too nice out today to be
> hacking cmake.  :)
>

Thanks Bill.  Enjoy the rest of the weekend.

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080406/c136436c/attachment.htm>


More information about the CMake mailing list