From: Juan Ramos Date: Fri, 27 Jan 2023 21:32:07 +0000 (-0700) Subject: cmake: Raise min to 3.17 X-Git-Tag: upstream/1.3.240~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b271b459c7e79eddd52dd7af01ee4d012c48b1e5;p=platform%2Fupstream%2FVulkan-Tools.git cmake: Raise min to 3.17 --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fe47a53..f8805e6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,8 +105,9 @@ jobs: - uses: actions/setup-python@v2 with: python-version: '3.7' - - name: Install Ninja - run: brew install ninja + - uses: lukka/get-cmake@latest + with: + cmakeVersion: 3.17.2 - name: Cache dependencies id: cache-deps uses: actions/cache@v3 diff --git a/BUILD.md b/BUILD.md index f5d16b2..f95ceb8 100644 --- a/BUILD.md +++ b/BUILD.md @@ -267,7 +267,7 @@ Also `CMAKE_EXPORT_COMPILE_COMMANDS` is implemented only by Makefile and Ninja g - [2017](https://www.visualstudio.com/vs/downloads/) - The Community Edition of each of the above versions is sufficient, as well as any more capable edition. -- [CMake 3.10.2](https://cmake.org/files/v3.10/cmake-3.10.2-win64-x64.zip) is recommended. +- [CMake 3.17.2](https://cmake.org/files/v3.17/cmake-3.17.2-win64-x64.zip) is recommended. - Use the installer option to add CMake to the system PATH - Git Client Support - [Git for Windows](http://git-scm.com/download/win) is a popular solution @@ -414,7 +414,7 @@ that the minimum officially supported C++11 compiler version is GCC 5.4.0, although earlier versions may work. It should be straightforward to adapt this repository to other Linux distributions. -[CMake 3.10.2](https://cmake.org/files/v3.10/cmake-3.10.2-Linux-x86_64.tar.gz) is recommended. +[CMake 3.17.2](https://cmake.org/files/v3.17/cmake-3.17.2-Linux-x86_64.tar.gz) is recommended. #### Required Package List diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ea2b49..9821a42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,6 @@ # ~~~ -# Copyright (c) 2014-2022 Valve Corporation -# Copyright (c) 2014-2022 LunarG, Inc. +# Copyright (c) 2014-2023 Valve Corporation +# Copyright (c) 2014-2023 LunarG, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -14,7 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. # ~~~ -cmake_minimum_required(VERSION 3.10.2) +cmake_minimum_required(VERSION 3.17.2) project(Vulkan-Tools) @@ -145,6 +145,7 @@ elseif(MSVC) if(BUILD_WERROR) add_compile_options("/WX") endif() + add_compile_options("/W3") # Warn about nested declarations add_compile_options("/w34456") # Warn about potentially uninitialized variables