summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2021-08-02 18:16:38 +0800
committerLi Xinwei <1326710505@qq.com>2021-08-03 04:18:42 +0800
commita25144394910d07d0819c4da5aae058b0912a312 (patch)
tree91ea6a5b6fabe39b66344cb755647c5e366b5e77 /qmake
parentba3e1fe09b7d921985e21d857a1d566465095e69 (diff)
Avoid to call _qt_internal_set_up_static_runtime_library() twice
Pick-to: 6.2 Change-Id: I28985470b3e0b88befbbd2d62a027670d7d6c822 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt
index d35d981c99..1ad10b950e 100644
--- a/qmake/CMakeLists.txt
+++ b/qmake/CMakeLists.txt
@@ -5,7 +5,7 @@
#####################################################################
# The common object library, that should be available regardless of the presence of qmake.
-add_library(QtLibraryInfo OBJECT
+qt_add_library(QtLibraryInfo OBJECT
library/proitems.cpp library/proitems.h
library/qmake_global.h
property.cpp property.h
@@ -42,7 +42,6 @@ target_compile_definitions(QtLibraryInfo PUBLIC
QT_TARGET_MKSPEC="${QT_QMAKE_TARGET_MKSPEC}"
QT_HOST_DATADIR="${hostdatadir}"
)
-qt_set_common_target_properties(QtLibraryInfo)
# qmake is out of any module, so we manually evaluate the required features.
include("${CMAKE_CURRENT_SOURCE_DIR}/configure.cmake")