Discussion:
[CMake] Where are Visual Studio *.pdb file located?
Julian Amann
2012-11-14 12:57:15 UTC
Permalink
In the past i used



set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ../Debug)



to place all my *.exe, *.dll, *.lib and *.pdb files in the ../Debug directory – but with the CMake 2.8.10.1 this seems not to work



all my *.exe, *.dll, *.lib are placed in the ../Debug directory

but the *.pdb files are not stored there



How can I influence where the *.pdb files are stored



Best regards,

Julian
Petr Kmoch
2012-11-14 13:04:43 UTC
Permalink
Hi Julian.

CMake 2.8.10 introduced target properties PDB_NAME[_<CONFIG>] and
PDB_OUTPUT_DIRECTORY[_<CONFIG>] which you can use to control location of
.pdb files. You can also set variable CMAKE_PDB_OUTPUT_DIRECTORY to
pre-initialise the directory settings.

Petr
Post by Julian Amann
In the past i used
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ../Debug)
to place all my *.exe, *.dll, *.lib and *.pdb files in the ../Debug
directory – but with the CMake 2.8.10.1 this seems not to work
all my *.exe, *.dll, *.lib are placed in the ../Debug directory
but the *.pdb files are not stored there
How can I influence where the *.pdb files are stored
Best regards,
Julian
--
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
http://www.cmake.org/Wiki/CMake_FAQ
http://www.cmake.org/mailman/listinfo/cmake
Julian Amann
2012-11-14 13:55:14 UTC
Permalink
Thanks Petr – works great

but I wonder why all the pdb files are named in lowercase letters – my lib
name is for example BlueCore.lib and there is a BlueCode.ilk, BlueCore.dll
and so on and a bluecore.pdb (written in lower case letters) – can it also
be name BlueCore.pdb?

Best regards,
Julian

Continue reading on narkive:
Loading...