Comments (11)
From CMake.org
inherits
An optional array of strings representing the names of presets to inherit from. This field can also be a string, which is equivalent to an array containing one string.
The preset will inherit all of the fields from the inherits presets by default (except name, hidden, inherits, description, and displayName), but can override them as desired. If multiple inherits presets provide conflicting values for the same field, the earlier preset in the inherits array will be preferred.
A preset can only inherit from another preset that is defined in the same file or in one of the files it includes (directly or indirectly). Presets in CMakePresets.json may not inherit from presets in CMakeUserPresets.json.
I will fix it soon.
from cmake-tools.nvim.
Another complexity you may not have accounted for :https://cmake.org/cmake/help/latest/manual/cmake-presets.7.html#macro-expansion
for example, I often set binaryDir to ${sourceDir}/build/${presetName}
in a base preset.
from cmake-tools.nvim.
Now it should work as expected. 86124bd
from cmake-tools.nvim.
I'm getting an error when I run :CMakeSelectConfigurePreset
Error executing Lua callback: ...k/packer/start/cmake-tools.nvim/lua/cmake-tools/init.lua:448: attempt to index upvalue 'config' (a nil value)
stack traceback:
...k/packer/start/cmake-tools.nvim/lua/cmake-tools/init.lua:448: in function 'on_choice'
/usr/share/nvim/runtime/lua/vim/ui.lua:54: in function 'select'
...k/packer/start/cmake-tools.nvim/lua/cmake-tools/init.lua:443: in function <...k/packer/start/cmake-tools.nvim/lua/cmake-tools/init.lua:430>
from cmake-tools.nvim.
Please check the latest commit. It should work well.
from cmake-tools.nvim.
I now get the original behavior for :CMakeBuild
.
Error: could not load cache
Error: could not load cache
from cmake-tools.nvim.
Delete build directory and rebuild.
from cmake-tools.nvim.
I think I see what's happening. I believe there are some issues evaluating inheritance. In the following example, I am able to configure/generate/build with the defaults
preset, but not the extended
preset.
{
"version": 3,
"configurePresets": [
{
"name": "defaults",
"binaryDir": "example_build_directory"
},
{
"name": "extended",
"inherits": ["defaults"]
},
]
}
Awesome progress so far. Thank you.
from cmake-tools.nvim.
thank you so much!
from cmake-tools.nvim.
About Macro, currently it doesn't support $env
, $penv
and $vendor
from cmake-tools.nvim.
I'm satisfied. Maybe backlog those in case anyone ever wants those, but I've never seen those used to assign the binary directory.
Thanks again for your work on this.
from cmake-tools.nvim.
Related Issues (20)
- Symlink compile_commands.json doesn't appear to work on windows HOT 7
- quick start HOT 4
- on_exit in default terminal.lua HOT 1
- How to choose target when every build/run HOT 18
- targets in buildPresets of CMakePresets.json not honored
- Build Directory Creation will Fail if it Requires a Recursive Create on Windows HOT 4
- Build Directory and Build Targets Not Always Found HOT 11
- Support fish shell HOT 4
- CMakeRun No Output on Windows HOT 5
- Slowdown every time cursor is moved HOT 4
- Whitespace makes CMakeGenerate error HOT 3
- Directory path starting with number causes error
- Feature:Easier to use
- neotest-ctest adapter HOT 3
- Presets are not ignored when `cmake_use_preset` is set to false HOT 5
- Copy compile_commands to a user specified directory after CMake Configure
- target filename HOT 2
- Suggestion: provide a stable callback-based lua API HOT 2
- Automatic split size?
- Disable *cmake-tools* scratch buffer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmake-tools.nvim.