Skip to content

Commit 35be4dc

Browse files
committed
Do not require /Zc:preprocessor when building with MSVC
1 parent f367ac8 commit 35be4dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ target_compile_features(cpp-sort INTERFACE cxx_std_14)
4242
# MSVC won't work without a stricter standard compliance
4343
if (MSVC)
4444
target_compile_options(cpp-sort INTERFACE
45-
$<$<COMPILE_LANGUAGE:CXX>:/permissive- /Zc:preprocessor>
46-
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler "/permissive- /Zc:preprocessor">
45+
$<$<COMPILE_LANGUAGE:CXX>:/permissive->
46+
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler "/permissive-">
4747
)
4848
endif()
4949

0 commit comments

Comments
 (0)