Specifying pdb symbol file path in cmake

I want to change the path of the pdb symbol file according to this doc and install /PDBALTPATH:%_PDB%

. However, if I write

set(CMAKE_SHARED_LINKER_FLAGS_RELEASE "${CMAKE_SHARED_LINKER_FLAGS_RELEASE} /DEBUG
    /OPT:REF /OPT:ICF /PDBALTPATH:%_PDB%")

      

and check the result in the project properties it reads /PDBALTPATH:%%_PDB%%

. Leaving the percentage, output the results to /PDBALTPATH:_PDB

.

How to achieve /PDBALTPATH:%_PDB%

?

The patterns I've tried so far (they all turn% into %%):

  • /PDBALTPATH:%_PDB%

  • /PDBALTPATH:_PDB

  • /PDBALTPATH:%25_PDB%25

  • /PDBALTPATH:%%_PDB%%

+3
visual-c ++ visual-studio cmake pdb-files


source to share


No one has answered this question yet

Check out similar questions:

1424
How to fix "The breakpoint will not be removed at this time. No symbols have been loaded for this document." warning?
240
Unblock by generating .pdb files, why?
210
What is a PDB file?
39
Failed to create PDB file
sixteen
"PDB does not match image" error in C # VS2010 project
3
Source information is missing from the debug information for this module - PDB loaded successfully
2
VS2010 Debug attaches to process / cannot find or open PDB file
1
Correctly generating PDB files for native DLL using Visual studio 2013
0
Visual Studio 2013 Community - Create PDB Files - No Advanced Debugging Options
0
Visual Studio Debug: Cannot find pdb, no matching symbol file found in this folder



All Articles
Loading...
X
Show
Funny
Dev
Pics