Check the PROJECT_NAME more thoroughly

This was missed in 3e1a223318dbda50a010ba851841a9e51c80c42b

Task-number: QTBUG-127953
Change-Id: I2ff6cafe852ec2696aea37e2e79e3c8b95c0e8ca
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit b8b6382b02457963fa5d0e67e069dc92e6d6c9d9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit ea4a6cfdfa7564e302151aa0c3d87fbbb7cbdb89)
bb10
Cristian Le 2025-02-14 12:50:47 +01:00 committed by Qt Cherry-pick Bot
parent d9d7b14f09
commit 614466354b
1 changed files with 1 additions and 1 deletions

View File

@ -78,6 +78,6 @@ if(QT_FEATURE_sql_mimer)
add_subdirectory(mimer)
endif()
if(NOT CMAKE_PROJECT_NAME STREQUAL "QtBase" AND NOT CMAKE_PROJECT_NAME STREQUAL "Qt")
if(NOT PROJECT_NAME STREQUAL "QtBase" AND NOT PROJECT_NAME STREQUAL "Qt")
qt_build_repo_end()
endif()