View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014283CMakeCMakepublic2013-07-09 10:502013-12-02 08:51
ReporterRenaud Barate 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformLinuxOSOS Version
Product VersionCMake 2.8.11.2 
Target VersionCMake 2.8.12Fixed in VersionCMake 2.8.12 
Summary0014283: Infinite loop when using CMAKE_FIND_ROOT_PATH variable
DescriptionWhen the variable CMAKE_FIND_ROOT_PATH is set to "/" and the macro FIND_PROGRAM is called with Windows-style paths in the PATHS parameter, cmake goes in an infinite loop.

The attached file reproduces this problem.
TagsNo tags attached.
Attached Filestxt file icon CMakeLists.txt [^] (201 bytes) 2013-07-09 10:50 [Show Content]

 Relationships

  Notes
(0033523)
Brad King (manager)
2013-07-09 15:55

This appears to have been introduced way back in 2004:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b221d046 [^]

The "while ( path.size() > dir.size() );" code assumes that eventually the parent directory will be shorter, but "C:/" is never shorter than "/".
(0033525)
Brad King (manager)
2013-07-11 09:09

Fixed in upstream KWSys here:

 http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=beef6819 [^]

and integrated into CMake here:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=0a44fa4c [^]
(0034642)
Robert Maynard (manager)
2013-12-02 08:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-07-09 10:50 Renaud Barate New Issue
2013-07-09 10:50 Renaud Barate File Added: CMakeLists.txt
2013-07-09 15:55 Brad King Note Added: 0033523
2013-07-10 08:30 Brad King Assigned To => Brad King
2013-07-10 08:30 Brad King Status new => assigned
2013-07-10 08:30 Brad King Target Version => CMake 2.8.12
2013-07-11 09:09 Brad King Note Added: 0033525
2013-07-11 09:09 Brad King Status assigned => resolved
2013-07-11 09:09 Brad King Resolution open => fixed
2013-07-11 09:09 Brad King Fixed in Version => CMake 2.8.12
2013-12-02 08:51 Robert Maynard Note Added: 0034642
2013-12-02 08:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team