Skip to content

Commit 5c8244f

Browse files
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
1 parent 042d690 commit 5c8244f

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

Diff for: external/Qt-Color-Widgets/CMakeLists.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,8 @@
1414
# You should have received a copy of the GNU Lesser General Public License
1515
# along with this program. If not, see <http://www.gnu.org/licenses/>.
1616
#
17-
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
18-
if ( ${CMAKE_VERSION} VERSION_GREATER "3.12.0")
19-
cmake_policy(SET CMP0077 NEW)
20-
endif()
17+
cmake_minimum_required (VERSION 3.18 FATAL_ERROR)
18+
cmake_policy(SET CMP0077 NEW)
2119

2220
set(COLORWIDGET_PROJECT_NAME QtColorWidgets)
2321
project(${COLORWIDGET_PROJECT_NAME} CXX)

Diff for: external/Qt-Color-Widgets/color_widgets_designer_plugin/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# You should have received a copy of the GNU Lesser General Public License
1515
# along with Color Widgets. If not, see <http://www.gnu.org/licenses/>.
1616

17-
cmake_minimum_required (VERSION 3.1 FATAL_ERROR)
17+
cmake_minimum_required (VERSION 3.18 FATAL_ERROR)
1818

1919
project(QtColorWidgetsPlugin CXX)
2020

Diff for: external/singleapplication/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.7.0)
1+
cmake_minimum_required(VERSION 3.18.0)
22

33
project(SingleApplication LANGUAGES CXX)
44

0 commit comments

Comments
 (0)