commonmark / cmark

CommonMark parsing and rendering library and program in C
Other
1.6k stars 534 forks source link

build: hoist the policy settings #493

Closed compnerd closed 7 months ago

compnerd commented 7 months ago

Policy settings may impact how project functions. They should be set immediately after cmake_minimum_required (which implicitly sets policies).

Use the POLICY check to see if a policy is defined rather than using a version check.