CGold
CGold copied to clipboard
PDB: working with debug symbols
OpenCV example: https://github.com/opencv/opencv/blob/bf4c5bef7fa254e996f31d3e3d7f81ce63716c13/cmake/OpenCVModule.cmake#L827-L836
CMake variables:
- https://cmake.org/cmake/help/latest/variable/CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY.html
- https://cmake.org/cmake/help/latest/variable/CMAKE_PDB_OUTPUT_DIRECTORY.html
This feature can be used as a workaround: https://github.com/ruslo/hunter/issues/230 (?)
Example: https://github.com/hunter-packages/googletest/pull/11/commits/48bc5340230e09a4ea5086f024a2d833e6aff201
Visual Studio "/Z7, /Zi, /ZI (Debug Information Format)":
- https://msdn.microsoft.com/en-us/library/958x11bc.aspx
- https://docs.microsoft.com/en-us/cpp/build/reference/z7-zi-zi-debug-information-format
Examples:
- https://github.com/forexample/package-example/blob/00335ff3f39c3b82a4b4b6095412b5a9e3aeda81/Foo/CMakeLists.txt#L24-L85
- https://github.com/cgold-examples/fruits/blob/a3d9bb315cb445a3fe808750db15f1ef9f50f1e7/CMakeLists.txt#L159-L187
- https://cgold.readthedocs.io/en/latest/tutorials/install/layout.html
TODO: Install sources for debugging?