MantisBT - CMake
View Issue Details
0011495CMakeCPackpublic2010-11-22 13:562011-01-06 15:16
Frederik Deweerdt 
Ben Boeckel 
normalminoralways
closedduplicate 
UbuntuLinux10.10
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011495: CMAKE_INSTALL_PREFIX cannot contain the '=' character in the path
Set 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.
1) 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
No tags attached.
duplicate of 0010356closed Ben Boeckel Problem specifying arguments on the command line containing '=' 
Issue History
2010-11-22 13:56Frederik DeweerdtNew Issue
2010-11-22 14:10Bill HoffmanNote Added: 0023489
2010-11-22 14:15Frederik DeweerdtNote Added: 0023490
2010-11-22 14:26Brad KingAssigned To => Ben Boeckel
2010-11-22 14:26Brad KingStatusnew => assigned
2010-11-22 14:27Brad KingNote Added: 0023492
2010-11-22 14:31Ben BoeckelNote Added: 0023493
2010-11-22 14:36Brad KingNote Added: 0023494
2010-12-08 09:24David ColeRelationship addedduplicate of 0010356
2010-12-08 17:48Ben BoeckelNote Added: 0023829
2011-01-05 14:34David ColeTarget Version => CMake 2.8.4
2011-01-06 14:33Ben BoeckelNote Added: 0024471
2011-01-06 14:33Ben BoeckelStatusassigned => closed
2011-01-06 14:33Ben BoeckelResolutionopen => duplicate
2011-01-06 15:16David ColeFixed in Version => CMake 2.8.4

Notes
(0023489)
Bill Hoffman   
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   
2010-11-22 14:15   
Putting the value by hand in the CMakeCache.txt makes the issue go away.
(0023492)
Brad King   
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   
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   
2010-11-22 14:36   
The command-line parser hands off "-D" options to cmCacheManager::ParseEntry.
(0023829)
Ben Boeckel   
2010-12-08 17:48   
A fix is in the next branch.
(0024471)
Ben Boeckel   
2011-01-06 14:33   
Closing as a duplicate.