CMakePM: Reference more CMake variables in auto-setup

This will remove the warnings for examples that setup only
the C++ compiler, or when configuring QML debugging.

Amends 1bf9900aed

Change-Id: Ica9361114be420b81f611f5d498d87949399e8b4
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Cristian Adam
2021-08-05 15:07:11 +02:00
parent 11da66f768
commit 614c9a6cb6

View File

@@ -1,7 +1,11 @@
#
# Internal Qt Creator variable reference
#
set(__just_reference_QT_QMAKE_EXECUTABLE ${QT_QMAKE_EXECUTABLE})
foreach(qtcreator_var
QT_QMAKE_EXECUTABLE CMAKE_PREFIX_PATH CMAKE_C_COMPILER CMAKE_CXX_COMPILER
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELWITHDEBINFO)
set(__just_reference_${qtcreator_var} ${${qtcreator_var}})
endforeach()
if (EXISTS "${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")
include("${CMAKE_SOURCE_DIR}/QtCreatorPackageManager.cmake")