jbeder / yaml-cpp

A YAML parser and emitter in C++
MIT License
4.91k stars 1.78k forks source link

Need to set CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY to lib folder in CMakeLists.txt #1232

Open slambon opened 8 months ago

slambon commented 8 months ago

There's currently a warning message when using YAML-CPP as static library in debug mode because the library yaml-cppd.lib is expecting / missing pdb information. By setting the pdb generation folder to the lib folder, the compiler is no longer complaining.

It now looks like this:

.\RootBuildFolder\Release
- yaml-cpp.lib

.\RootBuildFolder\Debug
- yaml-cpp static.pdb
- yaml-cppd.lib

See more about the problem: https://stackoverflow.com/questions/25843883/how-to-remove-warning-lnk4099-pdb-lib-pdb-was-not-found