Skip to content

Commit 37a535f

Browse files
authored
Merge pull request #228 from Q-Minh/1.x.y-develop
Let the project compile with NVCC.
2 parents 739e02e + bc49b6d commit 37a535f

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)