Skip to content

Commit 4ee508e

Browse files
committed
set and require C++14 for CUDA
1 parent e968316 commit 4ee508e

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ option(CUASR_CUDA_ARCHS "List of CUDA architectures to compile for." "60 61 70 7
2929
find_package(CUDA REQUIRED)
3030
set(CMAKE_CXX_EXTENSIONS OFF)
3131
set(CMAKE_CXX_STANDARD 14)
32+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
33+
set(CMAKE_CXX_EXTENSIONS OFF)
34+
35+
set(CMAKE_CUDA_STANDARD 14)
36+
set(CMAKE_CUDA_STANDARD_REQUIRED TRUE)
3237

3338
# C++ compiler flags for target compile options
3439
set(cuASR_CXX_FLAGS -Wall -Wextra -Wno-unused-parameter -Wno-uninitialized -Wno-strict-aliasing)

0 commit comments

Comments
 (0)