[vcpkg-fixup-cmake-targets] Rewrite the traversal code with -framework NAME on OSX#19629
[vcpkg-fixup-cmake-targets] Rewrite the traversal code with -framework NAME on OSX#19629JackBoosY wants to merge 12 commits intomicrosoft:masterfrom
-framework NAME on OSX#19629Conversation
…amework NAME`on OSX
-framework NAMEon OSX
-framework NAMEon OSX-framework NAME on OSX
|
cc @strega-nil-ms for review this PR. |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 6b24f0fa76d171c5756f01f407682f7274cfe238 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/baseline.json b/versions/baseline.json
index 2855173..11f44b1 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -6617,7 +6617,7 @@
"port-version": 0
},
"vcpkg-cmake-config": {
- "baseline": "2021-08-11",
+ "baseline": "2021-08-18",
"port-version": 0
},
"vcpkg-gfortran": {
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index affac6b..5ffdb7e 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,5 +1,10 @@
{
"versions": [
+ {
+ "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "version-date": "2021-08-18",
+ "port-version": 0
+ },
{
"git-tree": "b3abb12ba8ab43770aea4e5a8d4915319bd295ee",
"version-date": "2021-08-11",There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 6b24f0fa76d171c5756f01f407682f7274cfe238 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 5ffdb7e..26dfa00 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "git-tree": "0a1806a80ccf0f85fd4f79c5f2780adc4d92d78e",
"version-date": "2021-08-18",
"port-version": 0
},There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 6b24f0fa76d171c5756f01f407682f7274cfe238 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 5ffdb7e..26dfa00 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "git-tree": "0a1806a80ccf0f85fd4f79c5f2780adc4d92d78e",
"version-date": "2021-08-18",
"port-version": 0
},|
So this is what broke paraview |
How about target_link_libraries(main PRIVATE OpenGL.framework)instead of evil spaces? |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 6b24f0fa76d171c5756f01f407682f7274cfe238 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 5ffdb7e..fc78074 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "git-tree": "9f58eaa512e112b8a91d276b92a4dcbc52eef2ba",
"version-date": "2021-08-18",
"port-version": 0
},There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 6b24f0fa76d171c5756f01f407682f7274cfe238 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 5ffdb7e..26dfa00 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "git-tree": "0a1806a80ccf0f85fd4f79c5f2780adc4d92d78e",
"version-date": "2021-08-18",
"port-version": 0
},-framework NAME on OSX-framework NAME on OSX
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 6b24f0fa76d171c5756f01f407682f7274cfe238 -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 5ffdb7e..783aaa1 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,7 +1,7 @@
{
"versions": [
{
- "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "git-tree": "d4b5ea86aea3416a957fbe2384610feb6106f730",
"version-date": "2021-08-18",
"port-version": 0
},| { | ||
| "versions": [ | ||
| { | ||
| "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565", |
There was a problem hiding this comment.
| "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565", | |
| "git-tree": "d4b5ea86aea3416a957fbe2384610feb6106f730", |
Isn't there some kind of env variable the full path could be replaced with ? Because this changes doesn't change the fact that there are still full paths in the configs. |
There is existing code that removes the path part for link libraries if it is in Should this be applied to include directories, too? |
I wish too, but I didn't find that. |
There was a problem hiding this comment.
This is a new experimental fast check for PR issues. Please let us know if this bot is helpful!
After committing all other changes, the version database must be updated
git add -u && git commit
git checkout 025e564979cc01d0fbc5c920aa8a36635efb01bb -- versions
./vcpkg x-add-version --allDiff
diff --git a/versions/v-/vcpkg-cmake-config.json b/versions/v-/vcpkg-cmake-config.json
index 042a2dc..ed1308b 100644
--- a/versions/v-/vcpkg-cmake-config.json
+++ b/versions/v-/vcpkg-cmake-config.json
@@ -1,15 +1,10 @@
{
"versions": [
{
- "git-tree": "dd7d67c81c2442c831a298d136b019a2bd138565",
+ "git-tree": "fddc25466db06c2b22135793bce00f8c482a338c",
"version-date": "2021-08-18",
"port-version": 0
},
- {
- "git-tree": "b3abb12ba8ab43770aea4e5a8d4915319bd295ee",
- "version-date": "2021-08-11",
- "port-version": 0
- },
{
"git-tree": "330cc51bc99c6b71ed5fb51901f6f838684015a5",
"version-date": "2021-05-22",
No, the original error was caused by changing the value of |
Sure. I am concerned that |
|
i agree with @dg0yt and @Neumann-A this is a half-backed fix, because there are still absolute paths. Why fixing only some? We still have the problems of having absolute paths in the configs! Better to fix none in the end, instead of a half-solution? so to say: what is this PR fixing, in the end? |
-framework NAME on OSX-framework NAME on OSX
yeah I know. |
|
We know how to the substitution now, and we know the ports to look at for verification. Do it right and completely. |
|
@dg0yt But we don't know which expression should be replaced. |
|
|
nothing, it's not necessary if you have a proper "-framework VALUE" in the interface_link_library slot. |
|
Of course, before removing everything from those fields, you have to be sure there are not other libraries, which are not part of the "fixed" frameworks included in the fixed "interface_link_libraries" line ;) |
|
so to say should become |
|
Temporary close this issue because I have no good idea about that. |
|
@autoantwort how did you manage this issue in your “remove absolute paths” heroic effort? |
|
The absolute path check only checks for absolute paths to the package and the installed dir paths. |
vcpkg/scripts/cmake/vcpkg_fixup_cmake_targets.cmake
Lines 230 to 232 in ab60f27
Because
foreach (IN LISTS)separates each item according to a space, it incorrectly replaces the contents of non-INTERFACE_LINK_LIBRARIES. Such as:Fix that.
Now, this will fix
to