summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-05-02 16:39:31 +0200
committerAlexey Edelev <alexey.edelev@qt.io>2023-05-05 04:42:24 +0000
commitcd7a9af7cb464379469dc5418e1df871a9e6f723 (patch)
tree77711362d077d97798dce18a4720109dfe0b11bd
parent2fdc4db757ab81aa36ffd2f2458980917da8181e (diff)
downloadqtbase-cd7a9af7cb464379469dc5418e1df871a9e6f723.tar.gz
Do not use REALPATH when collecting Qt header files
CMake doesn't resolve REALPATH for the non-existing files. This limitation blocks the use of REALPATH when collecting the generated module header files. The real path should be resolved by syncqt implicitly and CMake scripts should rely on ABSOLUTE paths only, which should be consistent for any files including the generated files. Task-number: QTBUG-113295 Change-Id: I0219c7bf34ef6a6589c6d5fade4c2ed3f8036ef0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> (cherry picked from commit b523a655c8b6fabb8b79bb274ef034dcd094e1f8) Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
-rw-r--r--cmake/QtModuleHelpers.cmake2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmake/QtModuleHelpers.cmake b/cmake/QtModuleHelpers.cmake
index c83b76d9b2..41e0680e67 100644
--- a/cmake/QtModuleHelpers.cmake
+++ b/cmake/QtModuleHelpers.cmake
@@ -1190,7 +1190,6 @@ function(qt_internal_collect_module_headers out_var target)
get_target_property(source_dir ${target} SOURCE_DIR)
endif()
get_filename_component(source_dir "${source_dir}" ABSOLUTE)
- get_filename_component(source_dir "${source_dir}" REALPATH)
get_target_property(is_3rdparty_library ${target} _qt_module_is_3rdparty_header_library)
@@ -1211,7 +1210,6 @@ function(qt_internal_collect_module_headers out_var target)
endif()
get_filename_component(file_path "${file_path}" ABSOLUTE)
- get_filename_component(file_path "${file_path}" REALPATH)
string(FIND "${file_path}" "${source_dir}" source_dir_pos)
if(source_dir_pos EQUAL 0)