Check the PROJECT_NAME more thoroughly

This was missed in 3e1a223318dbda50a010ba851841a9e51c80c42b

Task-number: QTBUG-127953
Pick-to: 6.8 6.9
Change-Id: I2ff6cafe852ec2696aea37e2e79e3c8b95c0e8ca
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Cristian Le 2025-02-14 12:50:47 +01:00
parent 8e1c333661
commit b8b6382b02

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()