mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 03:17:53 +00:00
Use policy check instead of CMake version check
This commit is contained in:
parent
e392eea160
commit
3822241d99
@ -1,4 +1,4 @@
|
||||
if (CMAKE_MAJOR_VERSION GREATER 2 AND CMAKE_MINOR_VERSION GREATER 0)
|
||||
if (POLICY CMP0054)
|
||||
# Only interpret `if` arguments as variables or keywords when unquoted.
|
||||
cmake_policy(SET CMP0054 NEW)
|
||||
endif ()
|
||||
|
Loading…
Reference in New Issue
Block a user