From 17c993c75343b0b27ff818ce89c7a1f0a3f7cff0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Miguel=20P=C3=A9rez?= Date: Sat, 29 May 2021 05:24:31 +0200 Subject: [PATCH] Fixed compilation with CMake < 3.7 (#2321) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fd42c14..7958b1d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,9 +83,9 @@ option(FMT_OS "Include core requiring OS (Windows/Posix) " ON) option(FMT_MODULE "Build a module instead of a traditional library." OFF) set(FMT_CAN_MODULE OFF) -if (CMAKE_CXX_STANDARD GREATER_EQUAL 20 AND +if (CMAKE_CXX_STANDARD GREATER 17 AND # msvc 16.10-pre4 - MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.29.30036) + MSVC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 19.29.30035) set(FMT_CAN_MODULE ON) endif () if (NOT FMT_CAN_MODULE)