Skip to content

Commit e66d4b8

Browse files
committed
CMakeLists.txt: add -fno-exceptions for CUDA
When compiled with CUDA 8 and g++ 5 `__gxx_personality_v0` symbol is present for gpujpeg_huffman_gpu_encoder.cu.o (and decoder), requiring the libstdc++ library.
1 parent 967173e commit e66d4b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ if (MSVC)
9797
else()
9898
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic")
9999
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler -Wall -Xcompiler -Wextra")
100+
set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -Xcompiler -fno-exceptions")
100101
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
101102
endif()
102103

0 commit comments

Comments
 (0)