Bumped minimum Cmake version to fix build issues on Cmake 4.0. (#3901)

* Bumped minimum Cmake version to fix build issues on Cmake 4.0. 3.22 was chosen since that is the version on Ubuntu 22.04

* lowered cmake version to 3.18 for debian bullseye
This commit is contained in:
borgmanJeremy
2025-04-07 03:02:45 -05:00
committed by GitHub
parent 042d690060
commit 5c8244fef8
3 changed files with 4 additions and 6 deletions

View File

@@ -14,10 +14,8 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
cmake_minimum_required (VERSION 3.1 FATAL_ERROR) cmake_minimum_required (VERSION 3.18 FATAL_ERROR)
if ( ${CMAKE_VERSION} VERSION_GREATER "3.12.0") cmake_policy(SET CMP0077 NEW)
cmake_policy(SET CMP0077 NEW)
endif()
set(COLORWIDGET_PROJECT_NAME QtColorWidgets) set(COLORWIDGET_PROJECT_NAME QtColorWidgets)
project(${COLORWIDGET_PROJECT_NAME} CXX) project(${COLORWIDGET_PROJECT_NAME} CXX)

View File

@@ -14,7 +14,7 @@
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with Color Widgets. If not, see <http://www.gnu.org/licenses/>. # along with Color Widgets. If not, see <http://www.gnu.org/licenses/>.
cmake_minimum_required (VERSION 3.1 FATAL_ERROR) cmake_minimum_required (VERSION 3.18 FATAL_ERROR)
project(QtColorWidgetsPlugin CXX) project(QtColorWidgetsPlugin CXX)

View File

@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 3.7.0) cmake_minimum_required(VERSION 3.18.0)
project(SingleApplication LANGUAGES CXX) project(SingleApplication LANGUAGES CXX)