Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace c++11 by -std=c++1y in CMakeLists to enable c++14 #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ endif()

# enable C++11 and warnings
if(NOT MSVC)
add_definitions(-std=c++11 -Wall -Wunused-parameter -Wno-comment)
add_definitions(-std=c++1y -Wall -Wunused-parameter -Wno-comment)
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -g")
if(WIN32)
add_definitions(-D_USE_MATH_DEFINES)
Expand Down Expand Up @@ -123,7 +123,7 @@ if(CUDA_FOUND)
-gencode arch=compute_62,code=compute_62 # GTX 1080
-gencode arch=compute_52,code=compute_52 # GTX 980Ti
-gencode arch=compute_30,code=compute_30 # GTX 770
-std=c++11)
-std=c++1y)
if(NOT CUDA_VERSION VERSION_LESS 9.0)
list(APPEND CUDA_NVCC_FLAGS
-Xcudafe --diag_suppress=esa_on_defaulted_function_ignored
Expand Down