MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015865 | CMake | CMake | public | 2015-11-26 14:11 | 2016-06-10 14:31 |
Reporter | temp4746 | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | Windows | OS | Windows 7 | OS Version | 7 SP1 |
Product Version | CMake 3.4 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015865: Can't use /PDBALTPATH:%_PDB% in MSVC IDE generator due to CMake escaping percent signs | ||||
Description | When using the MSVC generator and using a linker flag that is added to the AdditionalOptions of the linker in the vcxproj, CMake will escape the linker flag. For example it will double up percent signs in a flag such as: /PDBALTPATH:%_PDB% Resuling in: /PDBALTPATH:%%_PDB%% Which is wrong in the MSVC IDE but might be correct for makefile generators. This prevents using this flag properly. Any fix for this need to be carefully thought out to prevent introducing an escaping bug in a different location in CMake. BTW if you try using percent signs in a compiler option it will escape it TWICE meaning you get FOUR percent signs for one percent sign. | ||||
Steps To Reproduce | Try the following: cmake_minimum_required(VERSION 3.4) project(Bug) add_executable(bug main.cpp) set_target_properties(bug PROPERTIES LINK_FLAGS "/PDBALTPATH:%_PDB%") And look in the IDE under linker->Command Line | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2015-11-26 14:11 | temp4746 | New Issue | |||
2015-12-18 15:10 | Davy Durham | Note Added: 0039998 | |||
2015-12-18 15:15 | Davy Durham | Note Edited: 0039998 | bug_revision_view_page.php?bugnote_id=39998#r1980 | ||
2015-12-18 15:18 | Brad King | Note Added: 0039999 | |||
2015-12-18 15:21 | Davy Durham | Note Added: 0040000 | |||
2015-12-21 08:56 | Brad King | Note Added: 0040010 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042893 | |||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|