"vscode:/vscode.git/clone" did not exist on "6d3610c4d16d99a7f4c59fbedf4d2f2840565a77"
Unverified Commit 224d6a69 authored by Muhammed Fatih BALIN's avatar Muhammed Fatih BALIN Committed by GitHub
Browse files

[Dev] Resolve compile issue with gcc 11.3.0 (#6072)

parent d2f192f8
......@@ -86,7 +86,7 @@ if(MSVC)
else(MSVC)
include(CheckCXXCompilerFlag)
set(CMAKE_C_FLAGS "-O2 -Wall -fPIC ${CMAKE_C_FLAGS}")
set(CMAKE_CXX_FLAGS "-O2 -Wall -fPIC -std=c++14 ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-O2 -Wall -fPIC ${CMAKE_CXX_FLAGS}")
if(NOT APPLE)
set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--warn-common ${CMAKE_SHARED_LINKER_FLAGS}")
endif(NOT APPLE)
......
......@@ -248,7 +248,7 @@ macro(dgl_config_cuda out_variable)
list(APPEND CUDA_NVCC_FLAGS ${NVCC_FLAGS_ARCH})
# 2. flags in third_party/moderngpu
list(APPEND CUDA_NVCC_FLAGS "--expt-extended-lambda;-Wno-deprecated-declarations")
list(APPEND CUDA_NVCC_FLAGS "--expt-extended-lambda;-Wno-deprecated-declarations;-std=c++14")
message(STATUS "CUDA_NVCC_FLAGS: ${CUDA_NVCC_FLAGS}")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment