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 6.9 Change-Id: I2be7e3bf80a577cdf8292c9f47bb127fa71615b6 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
cda51bcd9c
commit
ec5f4fe580
@ -14,6 +14,11 @@ macro(qt_configure_file_impl)
|
|||||||
message(WARNING "Both CONTENT and INPUT are specified. CONTENT will be used to generate"
|
message(WARNING "Both CONTENT and INPUT are specified. CONTENT will be used to generate"
|
||||||
" output")
|
" output")
|
||||||
endif()
|
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")
|
set(template_name "QtFileConfigure.txt.in")
|
||||||
# When building qtbase, use the source template file.
|
# When building qtbase, use the source template file.
|
||||||
# Otherwise use the installed file (basically wherever Qt6 package is found).
|
# Otherwise use the installed file (basically wherever Qt6 package is found).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user