File tree 3 files changed +6
-5
lines changed
3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ cmake_minimum_required(VERSION 3.5)
5
5
project (dgl C CXX)
6
6
message (STATUS "Start configuring project ${PROJECT_NAME} " )
7
7
8
+ set (CMAKE_CXX_STANDARD 17)
9
+ set (CMAKE_CXX_STANDARD_REQUIRED ON )
10
+
8
11
# cmake utils
9
12
include (cmake/util/Util.cmake)
10
13
include (cmake/util/MshadowUtil.cmake)
@@ -162,8 +165,6 @@ else(USE_CUDA)
162
165
add_library (dgl SHARED ${DGL_SRC} )
163
166
endif (USE_CUDA)
164
167
165
- set_property (TARGET dgl PROPERTY CXX_STANDARD 14)
166
-
167
168
# include directories
168
169
target_include_directories (dgl PRIVATE "include" )
169
170
target_include_directories (dgl PRIVATE "third_party/dlpack/include" )
Original file line number Diff line number Diff line change 8
8
###### Borrowed from MSHADOW project
9
9
10
10
include (CheckCXXCompilerFlag)
11
- check_cxx_compiler_flag("-std=c++14 " SUPPORT_CXX14 )
11
+ check_cxx_compiler_flag("-std=c++17 " SUPPORT_CXX17 )
12
12
13
13
set (dgl_known_gpu_archs "35" "50" "60" "70" )
14
14
set (dgl_cuda_arch_ptx "70" )
@@ -248,7 +248,7 @@ macro(dgl_config_cuda out_variable)
248
248
list (APPEND CUDA_NVCC_FLAGS ${NVCC_FLAGS_ARCH} )
249
249
250
250
# 2. flags in third_party/moderngpu
251
- list (APPEND CUDA_NVCC_FLAGS "--expt-extended-lambda;-Wno-deprecated-declarations;-std=c++14 " )
251
+ list (APPEND CUDA_NVCC_FLAGS "--expt-extended-lambda;-Wno-deprecated-declarations;-std=c++17 " )
252
252
253
253
message (STATUS "CUDA_NVCC_FLAGS: ${CUDA_NVCC_FLAGS} " )
254
254
Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ def config_cython():
145
145
library_dirs = library_dirs ,
146
146
libraries = libraries ,
147
147
# Crashes without this flag with GCC 5.3.1
148
- extra_compile_args = ["-std=c++14 " ],
148
+ extra_compile_args = ["-std=c++17 " ],
149
149
language = "c++" ,
150
150
)
151
151
)
You can’t perform that action at this time.
0 commit comments