From fef66e3d2319d8360825dcba1cf23061f5313c11 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Tue, 23 Jul 2024 12:53:35 -0400 Subject: [PATCH] Remove cmake_minimum_required from toolchain files (#412) This command is generally not included in toolchain files. It is used in project configuration files that will consume the toolchain file. Also, such a low value triggers warnings, support for <3.5.0 is being removed from CMake. --- wasi-sdk-p2.cmake | 3 --- wasi-sdk-pthread.cmake | 3 --- wasi-sdk.cmake | 3 --- 3 files changed, 9 deletions(-) diff --git a/wasi-sdk-p2.cmake b/wasi-sdk-p2.cmake index f00d7732b..aeed29350 100644 --- a/wasi-sdk-p2.cmake +++ b/wasi-sdk-p2.cmake @@ -1,8 +1,5 @@ # Cmake toolchain description file for the Makefile -# This is arbitrary, AFAIK, for now. -cmake_minimum_required(VERSION 3.5.0) - # Until Platform/WASI.cmake is upstream we need to inject the path to it # into CMAKE_MODULE_PATH. list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}") diff --git a/wasi-sdk-pthread.cmake b/wasi-sdk-pthread.cmake index ba660234b..c2cd83dbd 100644 --- a/wasi-sdk-pthread.cmake +++ b/wasi-sdk-pthread.cmake @@ -1,8 +1,5 @@ # Cmake toolchain description file for the Makefile -# This is arbitrary, AFAIK, for now. -cmake_minimum_required(VERSION 3.4.0) - set(CMAKE_SYSTEM_NAME WASI) set(CMAKE_SYSTEM_VERSION 1) set(CMAKE_SYSTEM_PROCESSOR wasm32) diff --git a/wasi-sdk.cmake b/wasi-sdk.cmake index 430e98f04..2131cfcd7 100644 --- a/wasi-sdk.cmake +++ b/wasi-sdk.cmake @@ -1,8 +1,5 @@ # Cmake toolchain description file for the Makefile -# This is arbitrary, AFAIK, for now. -cmake_minimum_required(VERSION 3.5.0) - # Until Platform/WASI.cmake is upstream we need to inject the path to it # into CMAKE_MODULE_PATH. list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}")