forked from qt-creator/qt-creator
Tracing: Use Qt5_VERSION to check the Qt version in CMake
Instead of QT_VERSION. Change-Id: I466f4daee623b91aadda5160cc7dec104788f66c Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1,5 +1,3 @@
|
|||||||
find_package(QT NAMES Qt5 Qt6)
|
|
||||||
|
|
||||||
if (WITH_TESTS)
|
if (WITH_TESTS)
|
||||||
set(TEST_SOURCES
|
set(TEST_SOURCES
|
||||||
runscenegraphtest.cpp runscenegraphtest.h
|
runscenegraphtest.cpp runscenegraphtest.h
|
||||||
@@ -40,7 +38,7 @@ add_qtc_library(Tracing
|
|||||||
${TEST_SOURCES}
|
${TEST_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(${QT_VERSION} VERSION_LESS "6.2.0")
|
if(${Qt5_VERSION} VERSION_LESS "6.2.0")
|
||||||
extend_qtc_library(Tracing
|
extend_qtc_library(Tracing
|
||||||
SOURCES
|
SOURCES
|
||||||
${TRACING_CPP_SOURCES}
|
${TRACING_CPP_SOURCES}
|
||||||
|
|||||||
Reference in New Issue
Block a user