MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011005 | CMake | CMake | public | 2010-07-17 08:00 | 2010-08-04 00:48 |
| Reporter | Carlo Wood | ||||
| Assigned To | Kovarththanan Rajaratnam | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | Fixed in Version | CMake-2-8 | |||
| Summary | 0011005: FindZLIB takes "forever" | ||||
| Description | FindZLIB takes 6.6 seconds. This is new for me since I upgraded my GNU/Linux debian testing (squeeze) recently. Before was using only a fraction of a second. This problem is caused by doing a STRING(REGEX REPLACE ".*#define ZLIB_VERSION \"([0-9]+)\\.([0-9]+)\\.([0-9]+)\".*" "\\1.\\2.\\3" ZLIB_VERSION_STRING "${ZLIB_H}") in FindZLIB.cmake on the complete contents of zlib.h. I'm not exactly sure what the reason is that this has to take 6.6 seconds, it seems to me that it should be able to do this faster; so the problem might actually lay in having an inefficient regular expression search. | ||||
| Steps To Reproduce | |||||
| Additional Information | The project that I'm working on uses include's in every CMakeLists.txt file, all of which seem to need to include an Common which includes FindZLIB. The result: configuring takes 4 minutes and 22 second. After taking out the regular expression search (that finds the version of zlib), configuring takes 6 seconds. The reproduce, create a file CMakeLists.txt with the contents: cmake_minimum_required(VERSION 2.8) include(FindZLIB) Then run: >rm CMakeCache.txt; time cmake .-- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Found ZLIB: /usr/include -- Configuring done -- Generating done -- Build files have been written to: /usr/src/debian/cmake/test real 0m6.595s user 0m6.456s sys 0m0.116s | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-07-17 08:00 | Carlo Wood | New Issue | |||
| 2010-07-17 08:02 | Carlo Wood | Note Added: 0021416 | |||
| 2010-07-17 08:02 | Carlo Wood | Note Edited: 0021416 | |||
| 2010-07-17 08:05 | Carlo Wood | Note Edited: 0021416 | |||
| 2010-07-17 21:45 | Nicolás Alvarez | Note Added: 0021418 | |||
| 2010-07-17 21:47 | Nicolás Alvarez | Note Edited: 0021418 | |||
| 2010-07-17 22:25 | Nicolás Alvarez | Note Added: 0021419 | |||
| 2010-08-03 12:14 | Kovarththanan Rajaratnam | Status | new => assigned | ||
| 2010-08-03 12:14 | Kovarththanan Rajaratnam | Assigned To | => Kovarththanan Rajaratnam | ||
| 2010-08-04 00:48 | Kovarththanan Rajaratnam | Note Added: 0021623 | |||
| 2010-08-04 00:48 | Kovarththanan Rajaratnam | Status | assigned => closed | ||
| 2010-08-04 00:48 | Kovarththanan Rajaratnam | Resolution | open => fixed | ||
| 2010-08-04 00:48 | Kovarththanan Rajaratnam | Fixed in Version | => CMake-2-8 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||