From 14ca382a63d95913aa002ab70b076d64f4f35931 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Miguel=20Pe=CC=81rez=20Ruiz?= Date: Sat, 29 May 2021 03:32:32 +0200 Subject: [PATCH] Fixed compilation with CMake < 3.7 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8fd42c14ebde..7958b1d62831 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)