Expose Patch Version in QtConfig.cmake
Change-Id: I2166d480c0b717fc9137f8eb42d5aab7a091395d Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
parent
6d73b02ace
commit
ed6e6c3787
@ -904,8 +904,10 @@ function(qt_autogen_tools_initial_setup target)
|
||||
set_property(TARGET "${target}" APPEND PROPERTY COMPATIBLE_INTERFACE_STRING QT_MAJOR_VERSION)
|
||||
|
||||
set_directory_properties(PROPERTIES
|
||||
QT_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}
|
||||
QT_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
||||
QT_VERSION_MAJOR ${PROJECT_VERSION_MAJOR}
|
||||
QT_VERSION_MINOR ${PROJECT_VERSION_MINOR}
|
||||
QT_VERSION_PATCH ${PROJECT_VERSION_PATCH}
|
||||
)
|
||||
|
||||
qt_enable_autogen_tool(${target} "moc" ON)
|
||||
endfunction()
|
||||
|
@ -18,7 +18,8 @@ else()
|
||||
# Make CMake's AUTOGEN detect this Qt version properly
|
||||
set_directory_properties(PROPERTIES
|
||||
QT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@
|
||||
QT_VERSION_MINOR @PROJECT_VERSION_MINOR@)
|
||||
QT_VERSION_MINOR @PROJECT_VERSION_MINOR@
|
||||
QT_VERSION_PATCH @PROJECT_VERSION_PATCH@)
|
||||
endif()
|
||||
|
||||
# if (NOT @INSTALL_CMAKE_NAMESPACE@_FIND_COMPONENTS)
|
||||
|
Loading…
Reference in New Issue
Block a user