Update CMake minimum version

#1199
This commit is contained in:
Sascha Willems 2025-04-11 19:52:01 +02:00
parent b56067bd03
commit d1bdb1ec65
98 changed files with 292 additions and 102 deletions

View file

@ -1,7 +1,7 @@
# Copyright (C) 2016-2025 by Sascha Willems - www.saschawillems.de
# This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
cmake_minimum_required(VERSION 3.4 FATAL_ERROR)
cmake_minimum_required(VERSION 3.10.0 FATAL_ERROR)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
set(NAME vulkanExamples)
@ -26,11 +26,8 @@ OPTION(FORCE_VALIDATION "Forces validation on for all samples at compile time (p
set(RESOURCE_INSTALL_DIR "" CACHE PATH "Path to install resources to (leave empty for running uninstalled)")
# Use FindVulkan module added with CMAKE 3.7
if (NOT CMAKE_VERSION VERSION_LESS 3.7.0)
message(STATUS "Using module to find Vulkan")
find_package(Vulkan)
endif()
message(STATUS "Using module to find Vulkan")
find_package(Vulkan)
IF(UNIX AND NOT APPLE)
set(LINUX TRUE)