Skip to content

With MSVC build tools setup, how to have the *.obj and .pdb files be generated in separated directory? #11876

Answered by bobbrow
aenlemmea asked this question in Q&A
Discussion options

You must be logged in to vote

Does this work for you?

    "tasks": [
        {
            "label": "mkdir",
            "type": "shell",
            "command": "if not exist \"${workspaceFolder}\\obj\" md \"${workspaceFolder}\\obj\""
        },
        {
            "type": "cppbuild",
            // ...
            "dependsOn": "mkdir",
        }
    ]

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@aenlemmea
Comment options

@bobbrow
Comment options

Answer selected by aenlemmea
@aenlemmea
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants