View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011531CMakeCMakepublic2010-11-28 11:562010-12-21 10:58
ReporterNodrev 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionunable to reproduce 
Platformx586OSMS WindowsOS VersionSeven
Product VersionCMake 2.8.3 
Target VersionFixed in Version 
Summary0011531: CMAKE fails when registry key point to a path that use backslashs instead of slash
DescriptionWhen a cmake find module uses registry, if the path in the registry key uses windows standard directory separators "\", they are not converted to "/", and cmakes fails to expand the directory.
Steps To ReproduceIn a command shell:
REG ADD HKLM\SOFTWARE\GnuWin32\Zlib /v InstallPath /d "D:\libraries\zlib" /f
REG ADD HKLM\SOFTWARE\Wow6432Node\GnuWin32\Zlib /v InstallPath /d "D:\libraries\zlib" /f

Use FindZLIB.
An error occurs telling Zlib was not found.
If the "\" are replaced by "/", Zlib is found.
Tagsregistry
Attached Files

 Relationships

  Notes
(0024232)
Brad King (manager)
2010-12-17 09:30

I cannot reproduce this. My registry entry points at

  C:\Program Files (x86)\GnuWin32

(with backslashes) and find_package(ZLIB) works. If I comment out the registry entry references in FindZLIB.cmake then it fails, so it is definitely using the registry to find zlib when it works.
(0024313)
Brad King (manager)
2010-12-21 10:58

Closing for now. Please re-open if necessary with more specific instructions to reproduce.

 Issue History
Date Modified Username Field Change
2010-11-28 11:56 Nodrev New Issue
2010-11-28 11:59 Nodrev Tag Attached: registry
2010-12-17 09:28 Brad King Assigned To => Brad King
2010-12-17 09:28 Brad King Status new => assigned
2010-12-17 09:30 Brad King Note Added: 0024232
2010-12-21 10:58 Brad King Note Added: 0024313
2010-12-21 10:58 Brad King Status assigned => closed
2010-12-21 10:58 Brad King Resolution open => unable to reproduce


Copyright © 2000 - 2018 MantisBT Team