summary refs log tree commit diff
path: root/pkgs/development/libraries/qt-6/patches/0008-qtbase-allow-translations-outside-prefix.patch
blob: e96cbdbef11de5ecf9d6cba627cbe96989e560a4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake
index b45ec1d208..05f69c131b 100644
--- a/cmake/QtBuild.cmake
+++ b/cmake/QtBuild.cmake
@@ -30,7 +30,7 @@ function(qt_configure_process_path name default docstring)
             set(rel_path ".")
         elseif(rel_path MATCHES "^\.\./")
             # INSTALL_SYSCONFDIR is allowed to be outside the prefix.
-            if(NOT name STREQUAL "INSTALL_SYSCONFDIR")
+            if(NOT (name STREQUAL "INSTALL_SYSCONFDIR" OR name STREQUAL "INSTALL_TRANSLATIONSDIR"))
                 message(FATAL_ERROR
                     "Path component '${name}' is outside computed install prefix: ${rel_path} ")
                 return()