We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 739e02e commit bc49b6dCopy full SHA for bc49b6d
CMakeLists.txt
@@ -42,8 +42,8 @@ target_compile_features(cpp-sort INTERFACE cxx_std_14)
42
# MSVC won't work without a stricter standard compliance
43
if (MSVC)
44
target_compile_options(cpp-sort INTERFACE
45
- /permissive-
46
- /Zc:preprocessor
+ $<$<COMPILE_LANGUAGE:CXX>:/permissive- /Zc:preprocessor>
+ $<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler "/permissive- /Zc:preprocessor">
47
)
48
endif()
49
0 commit comments