-
Notifications
You must be signed in to change notification settings - Fork 6.3k
/
allow_outside_prefix.patch
22 lines (22 loc) · 1.12 KB
/
allow_outside_prefix.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/cmake/QtBuildPathsHelpers.cmake b/cmake/QtBuildPathsHelpers.cmake
index bd186c28b..2c1994d2e 100644
--- a/cmake/QtBuildPathsHelpers.cmake
+++ b/cmake/QtBuildPathsHelpers.cmake
@@ -135,11 +135,13 @@ function(qt_configure_process_path name default docstring)
elseif(rel_path MATCHES "^\.\./")
# INSTALL_SYSCONFDIR is allowed to be outside the prefix.
if(NOT name STREQUAL "INSTALL_SYSCONFDIR")
- message(FATAL_ERROR
- "Path component '${name}' is outside computed install prefix: ${rel_path} ")
- return()
+ #message(FATAL_ERROR
+ # "Path component '${name}' is outside computed install prefix: ${rel_path} ")
+ #return()
+ set("${name}" "${rel_path}" CACHE STRING "${docstring}" FORCE)
+ else()
+ set("${name}" "${${name}}" CACHE STRING "${docstring}" FORCE)
endif()
- set("${name}" "${${name}}" CACHE STRING "${docstring}" FORCE)
else()
set("${name}" "${rel_path}" CACHE STRING "${docstring}" FORCE)
endif()