[gts] fix for correctly excluding predicates_init.c file in build (#36790)

- [x] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md).
- [ ] ~~SHA512s are updated for each updated download.~~
- [ ] ~~The "supports" clause reflects platforms that may be fixed by
this new version.~~
- [ ] ~~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~~
- [ ] ~~Any patches that are no longer applied are deleted from the
port's directory.~~
- [x] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [x] Only one version is added to each modified port's versions file.


Fix for excluding the `predicates_init.c` file from the build:
- fix typo `predicate_init.c` -> `predicates_init.c`
- use regex to filter out the file such that we can use a relative path
to filter out the file.
This commit is contained in:
RobbertProost 2024-02-22 07:24:37 +01:00 committed by GitHub
parent 92d6736716
commit 1dddccf0c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 8 additions and 3 deletions

View File

@ -26,7 +26,7 @@ add_definitions(
)
file(GLOB src src/*.c src/gts.def)
list(REMOVE_ITEM src src/predicate_init.c)
list(FILTER src EXCLUDE REGEX ".*predicates_init\\.c$")
add_library(gts ${src})
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/config.h" "")
target_include_directories(gts PUBLIC

View File

@ -1,7 +1,7 @@
{
"name": "gts",
"version": "0.7.6",
"port-version": 8,
"port-version": 9,
"description": "3D surfaces meshed with interconnected triangles",
"homepage": "https://gts.sourceforge.net/",
"license": "LGPL-2.0-or-later",

View File

@ -3206,7 +3206,7 @@
},
"gts": {
"baseline": "0.7.6",
"port-version": 8
"port-version": 9
},
"gtsam": {
"baseline": "4.2a9",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "3daf9b46d06d7c989ebc0b0236d5eb8912d00bb0",
"version": "0.7.6",
"port-version": 9
},
{
"git-tree": "1c12aefc981ca389e3235cf1940883f881dddb4d",
"version": "0.7.6",