From 6d43ec811beda8d67bba7dfa785f4175606269b6 Mon Sep 17 00:00:00 2001 From: Quoc-Minh Ton-That <34039469+Q-Minh@users.noreply.github.com> Date: Tue, 22 Apr 2025 16:07:13 -0400 Subject: [PATCH 1/2] Update CMakeLists.txt --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f436d61..74be1543 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -42,8 +42,8 @@ target_compile_features(cpp-sort INTERFACE cxx_std_14) # MSVC won't work without a stricter standard compliance if (MSVC) target_compile_options(cpp-sort INTERFACE - $<$:/permissive- /Zc:preprocessor> - $<$:-Xcompiler "/permissive- /Zc:preprocessor"> + $<$:/permissive-> + $<$:-Xcompiler="/permissive-"> ) endif() From 71cf7a7872981f7a750acf2e2061e5b6e4c4d257 Mon Sep 17 00:00:00 2001 From: Quoc-Minh Ton-That <34039469+Q-Minh@users.noreply.github.com> Date: Tue, 22 Apr 2025 16:43:49 -0400 Subject: [PATCH 2/2] Update CMakeLists.txt --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29c25cd1..74be1543 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,7 @@ if (MSVC) target_compile_options(cpp-sort INTERFACE $<$:/permissive-> $<$:-Xcompiler="/permissive-"> + ) endif() # Handle diagnostic options