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

Commit

Permalink
The explicit selection of clang compiler should be only on UNIX.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Nikolai Tasev committed Jun 2, 2017
1 parent ea71271 commit efe877c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ if(CUDA_FOUND)
# to make sure more people can easily run class code without knowing
# about this compiler argument
set(CUDA_NVCC_FLAGS "
-ccbin /usr/bin/clang;
-gencode;arch=compute_30,code=sm_30;
-gencode;arch=compute_35,code=sm_35;
-gencode;arch=compute_35,code=compute_35;
Expand All @@ -32,6 +31,7 @@ if(CUDA_FOUND)

# add -Wextra compiler flag for gcc compilations
if (UNIX)
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-ccbin /usr/bin/clang"
set(CUDA_NVCC_FLAGS ${CUDA_NVCC_FLAGS} "-Xcompiler -Wextra")
set(CMAKE_CXX_FLAGS "-stdlib=libstdc++")
endif (UNIX)
Expand Down

0 comments on commit efe877c

Please sign in to comment.