rwols / CMakeBuilder

Configure, build and test a CMake project right from within Sublime Text 3.
MIT License
30 stars 14 forks source link

trailing commas in sublime-project file trigger crypitc error during configure: "Error while configuring project: env" #28

Open minerscale opened 10 months ago

minerscale commented 10 months ago

Hi! This sublime-project file will trigger this error during the configure step: "Error while configuring project: env"

The problem was fixed by removing the trailing comma from "CMAKE_TOOLCHAIN_FILE"

{
    "folders":
    [
        {
            "path": ".",
        }
    ],
    "settings":
    {
        "cmake":
        {
            "build_folder": "$folder/build",
            "generator": "Ninja",
            "command_line_overrides":
            {
                "CMAKE_TOOLCHAIN_FILE": "toolchain.cmake", // <- that trailing comma is the problem!
            },
        },
    },
}

Thanks, Aaron.