Check the PROJECT_NAME when attempt to build sql drivers
Check the PROJECT_NAME but not CMAKE_PROJECT_NAME when attempt building sqldrivers. This should be save since we expect that the project() is called pre-Qt repo. Task-number: QTBUG-127953 Change-Id: Ief3f11ba747ded0984ccfe1cfa6b7b47da538137 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 3e1a223318dbda50a010ba851841a9e51c80c42b) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
1f3e8c3162
commit
a29573d136
@ -2,7 +2,7 @@
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
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")
|
||||
include(.cmake.conf)
|
||||
# Store initial build type (if any is specified) to be read by
|
||||
# qt_internal_set_cmake_build_type().
|
||||
|
Loading…
x
Reference in New Issue
Block a user