Skip to content

Commit bc49b6d

Browse files
authored
Update CMakeLists.txt
1 parent 739e02e commit bc49b6d

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-
/permissive-
46-
/Zc:preprocessor
45+
$<$<COMPILE_LANGUAGE:CXX>:/permissive- /Zc:preprocessor>
46+
$<$<COMPILE_LANGUAGE:CUDA>:-Xcompiler "/permissive- /Zc:preprocessor">
4747
)
4848
endif()
4949

0 commit comments

Comments
 (0)