View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011495CMakeCPackpublic2010-11-22 13:562011-01-06 15:16
ReporterFrederik Deweerdt 
Assigned ToBen Boeckel 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformUbuntuOSLinuxOS Version10.10
Product VersionCMake 2.8.3 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011495: CMAKE_INSTALL_PREFIX cannot contain the '=' character in the path
DescriptionSet CMAKE_INSTALL_PREFIX to something containing a '=' in the path. In that case the directive gets ignored, and 'make install' will try to install to /usr/local.
Steps To Reproduce1) Create a simple CMakeLists.txt with an install directive.
2) invoke cmake like this: 'cmake -DCMAKE_INSTALL_PREFIX=/path/containing=in/it/
3) type 'make install'
4) files get installed to /usr/local
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0010356closedBen Boeckel Problem specifying arguments on the command line containing '=' 

  Notes
(0023489)
Bill Hoffman (manager)
2010-11-22 14:10

Looks like a command line parsing issue. If you put the value in the CMakeCache.txt by hand or via cmake-gui does it work?
(0023490)
Frederik Deweerdt (reporter)
2010-11-22 14:15

Putting the value by hand in the CMakeCache.txt makes the issue go away.
(0023492)
Brad King (manager)
2010-11-22 14:27

This has been a long-standing cache-entry parsing bug. The method cmCacheManager::ParseEntry has a regex that is too aggressive and sucks everything until the last '=' into the name of the variable.
(0023493)
Ben Boeckel (developer)
2010-11-22 14:31

It's also a command line parsing bug. I get this in my CMakeCache.txt here:

    CMAKE_INSTALL_PREFIX=foo:UNINITIALIZED=bar

I imagine the command line parsing has a greedy regex as well.
(0023494)
Brad King (manager)
2010-11-22 14:36

The command-line parser hands off "-D" options to cmCacheManager::ParseEntry.
(0023829)
Ben Boeckel (developer)
2010-12-08 17:48

A fix is in the next branch.
(0024471)
Ben Boeckel (developer)
2011-01-06 14:33

Closing as a duplicate.

 Issue History
Date Modified Username Field Change
2010-11-22 13:56 Frederik Deweerdt New Issue
2010-11-22 14:10 Bill Hoffman Note Added: 0023489
2010-11-22 14:15 Frederik Deweerdt Note Added: 0023490
2010-11-22 14:26 Brad King Assigned To => Ben Boeckel
2010-11-22 14:26 Brad King Status new => assigned
2010-11-22 14:27 Brad King Note Added: 0023492
2010-11-22 14:31 Ben Boeckel Note Added: 0023493
2010-11-22 14:36 Brad King Note Added: 0023494
2010-12-08 09:24 David Cole Relationship added duplicate of 0010356
2010-12-08 17:48 Ben Boeckel Note Added: 0023829
2011-01-05 14:34 David Cole Target Version => CMake 2.8.4
2011-01-06 14:33 Ben Boeckel Note Added: 0024471
2011-01-06 14:33 Ben Boeckel Status assigned => closed
2011-01-06 14:33 Ben Boeckel Resolution open => duplicate
2011-01-06 15:16 David Cole Fixed in Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team