Skip to content

Commit

Permalink
set cmake_minimum_required to 3.22 (#1069)
Browse files Browse the repository at this point in the history
* set cmake_minimum_required to 3.22

That's the cmake verion included in Ubuntu 2022.04

Change-Id: I5d6da0d33c86eae5020bba1b9a8805fc8d7e7868

* CMake: assume CMP0091 OLD

Assume old-style setting of MSVC runtime selection.
See https://cmake.org/cmake/help/latest/policy/CMP0091.html

Set to OLD to allow migration of projects to the new mechanism.

Change-Id: I29f78d11e912924689f5508f1c2d6e72013d2563
  • Loading branch information
dneto0 authored Jan 7, 2025
1 parent 017742f commit 05e8c35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.

cmake_minimum_required(VERSION 3.13)
cmake_minimum_required(VERSION 3.22)
cmake_policy(SET CMP0091 OLD) # Assume old-style selection of MSVC runtime
if (POLICY CMP0048)
cmake_policy(SET CMP0048 NEW)
endif()
Expand Down

0 comments on commit 05e8c35

Please sign in to comment.