From 707fccb44505eb62c3736ec47473f964df883055 Mon Sep 17 00:00:00 2001 From: N'yoma Diamond Date: Mon, 2 Feb 2026 16:44:39 +0000 Subject: [PATCH] compile-time generator expression fixes overzealous /permissive- compiler option usage --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8395390..b383b7b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -57,13 +57,7 @@ if(FASTFLOAT_SANITIZE) endif() endif() -include(CheckCXXCompilerFlag) -unset(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE) -CHECK_CXX_COMPILER_FLAG(/permissive- FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE) - -if(FASTFLOAT_COMPILER_SUPPORTS_PERMISSIVE) - target_compile_options(fast_float INTERFACE /permissive-) -endif() +target_compile_options(fast_float INTERFACE $<$,$,19.10>>:/permissive->) if(FASTFLOAT_INSTALL) include(CMakePackageConfigHelpers)