Duncan Ogilvie
be0ef6d615
Generate find-package before fetch-content
2024-03-28 11:36:15 +01:00
Duncan Ogilvie
771c80a41a
Add [fetch-content].subdir
...
Closes #98
2023-11-09 13:28:29 +01:00
Duncan Ogilvie
58c7de1d60
Merge pull request #129 from build-cpp/gitignore-improvement
...
Improve the default .gitignore that's generated
2023-10-18 13:22:44 +02:00
Duncan Ogilvie
62609a0088
Improve the default .gitignore that's generated
2023-10-18 12:26:38 +02:00
Duncan Ogilvie
e0d8a085db
Merge pull request #121 from anthonyprintup/relative-paths
...
Added support for relative paths in `link-libraries`
2023-09-22 16:13:03 +02:00
Duncan Ogilvie
56da4144ae
Merge pull request #125 from anthonyprintup/fix-124
...
fix(generator): Prevent calling `std::string::back` on an empty string
2023-09-22 16:12:20 +02:00
Anthony Printup
079644cfeb
fix(generator): Prevent calling std::string::back on an empty string
...
Fixes #124
2023-09-20 02:34:02 +02:00
Anthony Printup
a7ca9f04c0
fix(relative-paths): Replaced has_parent_path with a simpler path check
2023-09-20 00:35:41 +02:00
Anthony Printup
339c2aac94
fix(generator): Prevent command arguments from being quoted when generating tests
...
Fixes #122
2023-09-18 18:36:58 +02:00
Anthony Printup
1c2947b2fc
fix(relative-paths): Prevent processing paths which may contain CMake macros, added a check to see if the library that's being linked exists on disk
2023-09-18 17:35:46 +02:00
Anthony Printup
56bd78f7ad
feat(project-parser): Added support for relative paths in link-libraries
...
Fixes #116
2023-09-18 15:44:44 +02:00
Anthony Printup
d3829fb6cd
Trim additional new lines at the end of the generated CMakeLists.txt
2023-09-16 18:49:30 +02:00
ζeh Matt
9f99365a25
Report better error messages for vcpkg projects and features
2023-08-25 15:58:24 +03:00
Duncan Ogilvie
ad90b1ad3e
Add 'clang-cl' and 'clang-any' conditions
2023-07-09 16:20:05 +02:00
Duncan Ogilvie
5bfa03d311
Bump to 0.2.24
2023-06-12 19:12:47 +02:00
Anthony Printup
bcaa60cabe
feat: Added SYSTEM flag support to fetch-content
2023-06-12 15:41:20 +02:00
Duncan Ogilvie
7a7ddf2699
Speed up the pipeline by using Ninja
2023-03-25 11:19:48 +00:00
Duncan Ogilvie
605a04e72d
Fix formatting of files
2023-03-24 11:07:02 +00:00
Duncan Ogilvie
ee0e0d71d9
Remove a bunch of dead code
2023-03-24 11:03:45 +00:00
Duncan Ogilvie
9d6897b572
Suppress warnings related to DOWNLOAD_EXTRACT_TIMESTAMP
2023-03-24 11:03:40 +00:00
Duncan Ogilvie
f8c34e5545
Error when [vcpkg] is used from a non-root project
2023-03-24 10:43:17 +00:00
Duncan Ogilvie
e6d783ea20
Fix a few clang-tidy warnings
2023-03-24 10:41:59 +00:00
Duncan Ogilvie
66b2aad843
Fix a bug where includes in a subdir would not work
2023-03-24 10:04:32 +00:00
Duncan Ogilvie
33911f3f1b
Fix a regression where cmkr init wouldn't create any source files
2023-03-09 21:35:11 +01:00
Duncan Ogilvie
cb9ad5cdb3
Improve error messages and check if specified sources exist
2023-03-08 09:41:40 +01:00
Duncan Ogilvie
275b73eefa
Remove debug print
2023-03-02 08:43:45 +01:00
Duncan Ogilvie
257e14c869
Merge pull request #93 from build-cpp/gitattributes
...
Automatically generate .gitattributes and .gitignore with cmkr init
2023-02-28 21:30:34 +01:00
Duncan Ogilvie
45678bc5bc
Automatically generate .gitattributes and .gitignore with cmkr init
2023-02-28 21:26:07 +01:00
Duncan Ogilvie
b869e5646f
Add a special "root" value for [options]
2023-02-28 19:34:31 +01:00
Duncan Ogilvie
0c19c3da0c
Improve the code related to [options]
2023-02-20 02:09:36 +01:00
Duncan Ogilvie
233cadadd0
Merge pull request #90 from mike1k/sanity
...
Error on unknown language & unacceptable source file.
2023-02-20 01:31:47 +01:00
Duncan Ogilvie
58a5a935e5
Add a bunch of missing languages and extensions and refactor
2023-02-20 01:18:48 +01:00
Duncan Ogilvie
bc6359805d
Change the clang condition to not detect clang-cl
...
References:
- https://github.com/cursey/safetyhook/issues/18
- https://discourse.cmake.org/t/clang-on-windows-detected-with-msvc-interface/3470
2023-02-19 22:23:34 +01:00
Duncan Ogilvie
8dcc11e349
Add helper function Project::cmake_minimum_version for version-dependent features
2023-02-19 22:19:12 +01:00
mike
7d27c28b59
Fixed failing tests due to implicit project languages (internal list empty)
2023-02-09 10:53:48 -06:00
Duncan Ogilvie
2c6fc569af
Preserve backwards compatibility
2023-01-14 16:17:06 +01:00
Duncan Ogilvie
12ee23a44c
Improve error messages
2023-01-14 15:52:19 +01:00
Duncan Ogilvie
82342a6b6f
Rename [settings] to [variables]
2023-01-14 15:51:57 +01:00
Duncan Ogilvie
1fd18503cd
Successfully fail when running cmkr subcommands
2022-11-24 00:32:31 +01:00
Duncan Ogilvie
2437eb90fe
Minor improvements
...
- Drastically improve quality of generated CMake
- Fix a regression with recursive globbing in the root
- Automatically include CSharpUtilities when using CSharp
2022-11-24 00:23:30 +01:00
Duncan Ogilvie
697b638723
Fix warning on macos
2022-10-11 14:19:29 +02:00
Duncan Ogilvie
53c88ceafa
Actually generate the set(CMAKE_MSVC_RUNTIME_LIBRARY)
...
Closes #69 (nice)
2022-10-08 10:37:27 +02:00
Duncan Ogilvie
69d844a152
Refactor msvc-static to msvc-runtime
2022-10-07 17:46:36 +02:00
gmh5225
af9a117f50
Fix merge
2022-10-07 06:50:26 +08:00
gmh5225
5fe8220728
Merge branch 'feature-msvc-static' of https://github.com/gmh5225/cmkr into feature-msvc-static
2022-10-07 06:41:43 +08:00
gmh5225
28f541cd3c
[feature] add CMP0091
2022-10-07 06:41:11 +08:00
gmh5225
2f3fd7b95e
Merge branch 'main' into feature-msvc-static
2022-10-07 05:35:11 +08:00
Duncan Ogilvie
5af2385cc3
Fix the way target.headers is merged into target.sources
...
- It would crash if you did not specify target.sources
- Headers with condition would be merged incorrectly
2022-10-06 18:22:51 +02:00
gmh5225
981c48dbc5
[feature] msvc-static
2022-10-02 10:43:32 +08:00
Duncan Ogilvie
5b6d9c3826
Replace illegal characters in the project name with _ when doing cmkr init
2022-07-19 13:42:56 +02:00