MantisBT - CMake
View Issue Details
0014694CMakeCMakepublic2014-01-13 11:372016-06-10 14:31
Geoff 
Kitware Robot 
normalminoralways
closedmoved 
Windows7Professional SP1
CMake 2.8.12.1 
 
0014694: Percent symbol (%) in path creates bad autogenerated paths
When there is a percentage symbol (%) in the cmake file path, cmake creates bad file paths to autogenerated .stamp and .sln files. The path to these files seems to have concatenated a copy of itself. In visual studio 11, it reports these errors in the CUSTOMBUILD step for both the ZEROCHECK and user projects.
1. Create a folder with a % in it
2. Create a .c file with a simple main function
3. Create a CMakeLists.txt file with an executable to a the .c file above
4. Run cmake for Visual Studio 11
5. Build all
No tags attached.
related to 0014073closed Brad King VS2010 / VS2012 - Improper escape of semicolon in compile definition 
zip bugWithPercent%.zip (564) 2014-01-13 11:37
https://public.kitware.com/Bug/file/5044/bugWithPercent%25.zip
Issue History
2014-01-13 11:37GeoffNew Issue
2014-01-13 11:37GeoffFile Added: bugWithPercent%.zip
2014-01-13 14:23Brad KingRelationship addedrelated to 0014073
2014-01-13 14:25Brad KingNote Added: 0034932
2016-06-10 14:29Kitware RobotNote Added: 0042463
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0034932)
Brad King   
2014-01-13 14:25   
As pointed out here:

 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9079/focus=9081 [^]

the solution will require encoding % as %25. However, this will need to be done with care because outside of file paths % needs to be left as %.
(0042463)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.