Duncan Ogilvie
Duncan Ogilvie
The `~` should be expanded before attempting a git clone (since it will clone in a directory called ~)
```toml [project] name = "foo" languages = ["C"] apple.languages = ["OBJCXX"] ``` This should generate: ```cmake project(foo LANGUAGES C) if() enable_language(OBJCXX) endif() ```
```toml apple.sources = ["src/platform_apple.mm"] apple.link-libraries = [ "$", ] ```
Currently specifying cache variables is a huge pain. The use case is variables that need to be set before the `project` call: ```cmake set(CMAKE_CONFIGURATION_TYPES "Debug;Release" CACHE STRING "") set(CMAKE_BUILD_TYPE "Release"...
This is rather niche, but useful when dealing with CLion. ```toml [target.exe] type = "executable" sources = [ "src/exe/*.cpp", "src/exe/*.h", "src/exe/manifest.xml", "src/exe/resource.rc", "src/exe/strings.rc", ] x86.sources = ["src/exe/icon32.rc"] x64.sources = ["src/exe/icon64.rc"]...
```toml [conditions] shared = "BUILD_SHARED_LIBS" static = "NOT BUILD_SHARED_LIBS" ```
```toml [target.foo] type = "executable" sources = ["main.cpp "] ``` It prints 'source file not found: main.cpp ', but you do not see the space in the terminal.
Globs are helpful when initializing a project, but they can become confusing later in development.
This was a comment on [hacker news](https://news.ycombinator.com/item?id=40273772) a while back: > I think Cmkr fails to state its value proposition by focusing on how it works. > > Any system...