Skip to content

Commit af5e6b4

Browse files
committed
[FIXUP] cmake: Enable CMP0141 policy after cmake_minimum_required()
Otherwise, the policy setting won't get any effect.
1 parent e05358e commit af5e6b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@
77
#
88
# Centos Stream 9, EOL in May 2027:
99
# - CMake 3.26.5, https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/
10+
cmake_minimum_required(VERSION 3.22)
1011
if(POLICY CMP0141)
1112
# MSVC debug information format flags are selected by an abstraction.
1213
# We want to use the CMAKE_MSVC_DEBUG_INFORMATION_FORMAT variable
1314
# to select the MSVC debug information format.
1415
cmake_policy(SET CMP0141 NEW)
1516
endif()
16-
cmake_minimum_required(VERSION 3.22)
1717

1818
#=============================
1919
# Project / Package metadata

0 commit comments

Comments
 (0)