Skip to content
This repository was archived by the owner on Jun 27, 2022. It is now read-only.

Commit efe877c

Browse files
author
Nikolai Tasev
committed
The explicit selection of clang compiler should be only on UNIX.
When compiling on Windows with MSVC this option breaks the compilation. Maybe this selection should be removed altogether and let the user select its compiler when needed.
1 parent ea71271 commit efe877c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ if(CUDA_FOUND)
2121
# to make sure more people can easily run class code without knowing
2222
# about this compiler argument
2323
set(CUDA_NVCC_FLAGS "
24-
-ccbin /usr/bin/clang;
2524
-gencode;arch=compute_30,code=sm_30;
2625
-gencode;arch=compute_35,code=sm_35;
2726
-gencode;arch=compute_35,code=compute_35;
@@ -32,6 +31,7 @@ if(CUDA_FOUND)
3231

3332
# add -Wextra compiler flag for gcc compilations
3433
if (UNIX)
34+
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-ccbin /usr/bin/clang"
3535
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler -Wextra")
3636
set(CMAKE_CXX_FLAGS "-stdlib=libstdc++")
3737
endif (UNIX)

0 commit comments

Comments
 (0)