-
-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qt6: don't treat absolute paths without known suffix as library
- Loading branch information
Showing
2 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
.../libraries/qt-6/patches/0011-qtbase-dont-treat-abspaths-without-suffix-as-libraries.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/cmake/QtGenerateLibHelpers.cmake b/cmake/QtGenerateLibHelpers.cmake | ||
index 96675267d2..c9d4a69497 100644 | ||
--- a/cmake/QtGenerateLibHelpers.cmake | ||
+++ b/cmake/QtGenerateLibHelpers.cmake | ||
@@ -10,7 +10,7 @@ function(qt_get_library_name_without_prefix_and_suffix out_var file_path) | ||
if(NOT file_path MATCHES "^-") # not a linker flag | ||
get_filename_component(basename "${file_path}" NAME_WE) | ||
get_filename_component(ext "${file_path}" EXT) | ||
- if(NOT ext) # seems like a library name without prefix and suffix | ||
+ if(NOT ext AND NOT IS_ABSOLUTE "${file_path}") # seems like a library name without prefix and suffix | ||
set(${out_var} "${file_path}" PARENT_SCOPE) | ||
return() | ||
endif() |