go2sh / cmake-integration-vscode

CMake Server Interface for VSCode.
https://go2sh.github.io/cmake-integration-vscode/
Other
19 stars 11 forks source link

cmake.default.cacheEntries and cmake.build.targetDependencies not working #64

Open patlefort opened 4 years ago

patlefort commented 4 years ago

I couldn't make either settings work from either the user or workspace level. Example:

"cmake.default.cacheEntries": [
    {
        "name": "CMAKE_CXX_FLAGS_RELEASE",
        "type": "STRING",
        "value": "-O3 -DNDEBUG"
    },
    {
        "name": "CMAKE_INSTALL_PREFIX", 
        "type": "STRING", 
        "value": "/home/elrick/Software/PhotoRT"
    },
    {
        "name": "CMAKE_PREFIX_PATH",
        "type": "STRING",
        "value": "/home/elrick/Software/PhotoRT"
    }
],
"cmake.build.targetDependencies": [
    {
        "project": "PhotoRT_Root",
        "dependencies": [{ "project": "PatLib" }]
    },
    {
        "project": "PhotortTest",
        "dependencies": [{ "project": "PhotoRT_Root" }]
    }
]

inside the settings.json, where "Edit in settings.json" link points to. I tried deleting the build directory and restarting vscode.