Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Windows.Clang.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@
# Resources:
# <https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html>
#
cmake_minimum_required(VERSION 3.20)
if(CMAKE_VERSION VERSION_LESS 3.20)
message(FATAL_ERROR "WindowsToolchain requires at least CMake 3.20, but CMake ${CMAKE_VERSION} is in use.")
endif()

include_guard()

Expand Down
4 changes: 3 additions & 1 deletion Windows.EWDK.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
# Resources:
# <https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html>
#
cmake_minimum_required(VERSION 3.20)
if(CMAKE_VERSION VERSION_LESS 3.20)
message(FATAL_ERROR "WindowsToolchain requires at least CMake 3.20, but CMake ${CMAKE_VERSION} is in use.")
endif()

include_guard()

Expand Down
4 changes: 3 additions & 1 deletion Windows.MSVC.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
# Resources:
# <https://cmake.org/cmake/help/latest/manual/cmake-toolchains.7.html>
#
cmake_minimum_required(VERSION 3.20)
if(CMAKE_VERSION VERSION_LESS 3.20)
message(FATAL_ERROR "WindowsToolchain requires at least CMake 3.20, but CMake ${CMAKE_VERSION} is in use.")
endif()

include_guard()

Expand Down
2 changes: 1 addition & 1 deletion example/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#----------------------------------------------------------------------------------------------------------------------
#
#----------------------------------------------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.20)
cmake_minimum_required(VERSION 3.31)

if(DEFINED ENV{CUDA_PATH})
set(CMAKE_CUDA_COMPILER "$ENV{CUDA_PATH}/bin/nvcc.exe")
Expand Down