(VS Code running on Ubuntu 20.04)
With this code in CMakeLists.txt:
message(“The Generator is ${CMAKE_GENERATOR}”)
if(GENERATOR_IS_MULTI_CONFIG)
message(“The Generator is multi-config”)
else()
message(“The Generator is NOT multi-config”)
endif()
The output is:
[cmake] The Generator is Ninja Multi-Config
[cmake] The Generator is NOT multi-config
.vscode/settings.json is:
{
“cmake.generator”: “Ninja Multi-Config”
}
Am I doing something wrong?
Thanks