Skip to content

Commit

Permalink
Check the PROJECT_NAME when attempt to build sql drivers
Browse files Browse the repository at this point in the history
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
Pick-to: 6.8
Change-Id: Ief3f11ba747ded0984ccfe1cfa6b7b47da538137
Reviewed-by: Alexandru Croitor <[email protected]>
  • Loading branch information
semlanik committed Aug 20, 2024
1 parent 315210d commit 3e1a223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugins/sqldrivers/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down

0 comments on commit 3e1a223

Please sign in to comment.