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)