From ed6e6c37875d80db8b25e217959d91c71179e932 Mon Sep 17 00:00:00 2001 From: Leander Beernaert Date: Wed, 11 Dec 2019 16:14:22 +0100 Subject: [PATCH] Expose Patch Version in QtConfig.cmake Change-Id: I2166d480c0b717fc9137f8eb42d5aab7a091395d Reviewed-by: Alexandru Croitor --- cmake/QtBuild.cmake | 6 ++++-- cmake/QtConfig.cmake.in | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake/QtBuild.cmake b/cmake/QtBuild.cmake index 8b87ef9fdb..a70f974678 100644 --- a/cmake/QtBuild.cmake +++ b/cmake/QtBuild.cmake @@ -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() diff --git a/cmake/QtConfig.cmake.in b/cmake/QtConfig.cmake.in index 6bb323f22f..6d69c1f90e 100644 --- a/cmake/QtConfig.cmake.in +++ b/cmake/QtConfig.cmake.in @@ -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)