Duncan Ogilvie
78bcf2acf7
Add support for [vcpkg].overlay-triplets
2024-11-28 14:28:10 +01:00
Duncan Ogilvie
e9480a625f
Allow disabling default features with vcpkg
2024-11-27 14:13:37 +01:00
Duncan Ogilvie
ae3d73896e
Add [vcpkg].overlay-ports feature
2024-11-26 12:33:29 +01:00
deep
d02ee3ed24
Added check to make sure hash is valid hex ( #153 )
2024-11-03 10:49:33 +01:00
Duncan Ogilvie
42ed3048b3
Improve relative path functionality for link-libraries
2024-09-06 13:50:43 +02:00
Duncan Ogilvie
5882bc082d
Support integer properties
...
Closes #148
2024-08-05 15:28:38 +02:00
Duncan Ogilvie
dabffeaed9
Add back the option name as a named condition
2024-07-06 14:43:32 +02:00
Duncan Ogilvie
59fe5c38b8
Consider PROJECT_OPTION to be a valid condition
2024-07-06 14:43:32 +02:00
Duncan Ogilvie
dcdc7ac410
Add a few more default named conditions
2024-07-06 14:43:32 +02:00
Duncan Ogilvie
559f750c89
Fix undefined behavior with std::tolower/toupper
2024-06-01 00:55:29 +02:00
Duncan Ogilvie
ff7e4b8f23
Allow arbitrary CMake expressions as conditions
2024-04-15 02:12:02 +02:00
Duncan Ogilvie
771c80a41a
Add [fetch-content].subdir
...
Closes #98
2023-11-09 13:28:29 +01: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
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
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
605a04e72d
Fix formatting of files
2023-03-24 11:07:02 +00:00
Duncan Ogilvie
e6d783ea20
Fix a few clang-tidy warnings
2023-03-24 10:41:59 +00: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
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
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
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
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
a90988b81a
Update the formatting to now allow functions on a single line
...
This makes it less annoying when the IDE is auto-formatting while you type
2022-07-19 13:41:43 +02:00
Duncan Ogilvie
e69cf4d2b9
Add install.optional flag
2022-06-01 19:06:53 +02:00
Duncan Ogilvie
9a82f8c796
Temporarily remove the crt-linkage and library-linkage options
...
These require a lot more work to integrate properly with vcpkg, reimplement triplet detection and set a custom triplet
2022-06-01 16:57:09 +02:00
Duncan Ogilvie
232e49e087
Add support for vcpkg CRT and library linkage customization
2022-04-01 02:27:41 +02:00
Duncan Ogilvie
9b0f18ee94
Fix a bug in fetch-content generation
2022-03-06 06:05:17 +01:00
Duncan Ogilvie
85370968f8
Improved fetch-content support
...
Closes #38
2022-02-12 04:05:51 +01:00
Duncan Ogilvie
06a4c04df6
Add support for 'shallow' in fetch-content
2022-02-12 03:10:25 +01:00
Duncan Ogilvie
c713606fd4
Error when using an unknown key in the root of the TOML
...
[error] Unknown key 'fetch-cntent'
--> cmake.toml:2
|
2 | [fetch-cntent.blah]
| ~~~~~~~~~~~~
2022-02-12 02:19:37 +01:00
Duncan Ogilvie
fe9b6587a9
Error when trying to parse an empty cmake.toml file
2022-02-12 02:07:30 +01:00
cursey
6f8b07a801
Allow specifying install component name
2022-01-28 17:16:19 -08:00
Duncan Ogilvie
d905be1d13
Final touches
2022-01-12 23:57:14 +01:00
cursey
2b7ee72e86
Separate template parsing and generation
...
* Reuse type for specifying template to use
* Add support for template add-function
* Add support for template pass-sources-to-add-function
2022-01-10 23:29:26 -08:00
cursey
61d5e64d87
Fix parser expecting to always find templates
2022-01-10 18:59:34 -08:00
cursey
eed1e38407
Add support for target templates
2022-01-10 18:59:33 -08:00
Duncan Ogilvie
6c1e388391
Add root, x64 and x32 conditions
2021-12-30 14:27:07 +01:00