Use 'file(CONFIGURE' in qt_configure_file for CMake >= 3.18
Use the original functionality as the fall back solution for the introduced by CMake 'file(CONFIGURE' command. Pick-to: 6.8 Change-Id: I2be7e3bf80a577cdf8292c9f47bb127fa71615b6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit ec5f4fe580975594edcf7cff42433526a6ec43ba) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
b27ba33a66
commit
ab04b4ba8e
@ -14,6 +14,11 @@ macro(qt_configure_file_impl)
|
||||
message(WARNING "Both CONTENT and INPUT are specified. CONTENT will be used to generate"
|
||||
" output")
|
||||
endif()
|
||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.18)
|
||||
file(CONFIGURE OUTPUT "${arg_OUTPUT}" CONTENT "${arg_CONTENT}" @ONLY)
|
||||
return()
|
||||
endif()
|
||||
|
||||
set(template_name "QtFileConfigure.txt.in")
|
||||
# When building qtbase, use the source template file.
|
||||
# Otherwise use the installed file (basically wherever Qt6 package is found).
|
||||
|
Loading…
x
Reference in New Issue
Block a user