Skip to content

Commit

Permalink
build: adjust the policy to silence warnings on MSVC builds
Browse files Browse the repository at this point in the history
CMake 3.15+ remove `/W3` from the language flags under MSVC with
CMP0092.  Set the policy to new to avoid the D9025 warning.
  • Loading branch information
compnerd authored and jgm committed Dec 29, 2023
1 parent 5085d8c commit 7c67921
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 3.7)
if(POLICY CMP0063)
cmake_policy(SET CMP0063 NEW)
endif()
if(POLICY CMP0092)
cmake_policy(SET CMP0092 NEW)
endif()

project(cmark VERSION 0.30.3)

Expand Down

0 comments on commit 7c67921

Please sign in to comment.