Skip to content

Commit

Permalink
[FIXUP] cmake: Enable CMP0141 policy after cmake_minimum_required()
Browse files Browse the repository at this point in the history
Otherwise, the policy setting won't get any effect.
  • Loading branch information
hebasto committed Jun 29, 2024
1 parent e05358e commit af5e6b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
#
# Centos Stream 9, EOL in May 2027:
# - CMake 3.26.5, https://mirror.stream.centos.org/9-stream/AppStream/x86_64/os/Packages/
cmake_minimum_required(VERSION 3.22)
if(POLICY CMP0141)
# MSVC debug information format flags are selected by an abstraction.
# We want to use the CMAKE_MSVC_DEBUG_INFORMATION_FORMAT variable
# to select the MSVC debug information format.
cmake_policy(SET CMP0141 NEW)
endif()
cmake_minimum_required(VERSION 3.22)

#=============================
# Project / Package metadata
Expand Down

0 comments on commit af5e6b4

Please sign in to comment.