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


source to share





All Articles