Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Oct 12, 2023

  1. Setting CMAKE_COMPILE_PDB_OUTPUT_DIRECTORY to lib folder

    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
    slambon authored Oct 12, 2023
    Configuration menu
    Copy the full SHA
    f0c5702 View commit details
    Browse the repository at this point in the history