Skip to content
Snippets Groups Projects
Commit 667506b1 authored by yaskovet's avatar yaskovet
Browse files

Move project c++ target standard to c++17

parent d4030543
No related branches found
No related tags found
No related merge requests found
...@@ -40,7 +40,7 @@ if ( CUDA_ON_BACKEND STREQUAL "HIP" AND HIP_FOUND ) ...@@ -40,7 +40,7 @@ if ( CUDA_ON_BACKEND STREQUAL "HIP" AND HIP_FOUND )
list(APPEND HIP_HIPCC_FLAGS -O0) list(APPEND HIP_HIPCC_FLAGS -O0)
endif() endif()
list(APPEND HIP_HIPCC_FLAGS -D__NVCC__ -D__HIP__ -DCUDART_VERSION=11000 -D__CUDACC__ -D__CUDACC_VER_MAJOR__=11 -D__CUDACC_VER_MINOR__=0 -D__CUDACC_VER_BUILD__=0 --std=c++14) list(APPEND HIP_HIPCC_FLAGS -D__NVCC__ -D__HIP__ -DCUDART_VERSION=11000 -D__CUDACC__ -D__CUDACC_VER_MAJOR__=11 -D__CUDACC_VER_MINOR__=0 -D__CUDACC_VER_BUILD__=0 --std=c++17)
set_source_files_properties(${CUDA_SOURCES} PROPERTIES LANGUAGE CXX) set_source_files_properties(${CUDA_SOURCES} PROPERTIES LANGUAGE CXX)
hip_add_executable(numerics ${OPENFPM_INIT_FILE} ${CUDA_SOURCES} hip_add_executable(numerics ${OPENFPM_INIT_FILE} ${CUDA_SOURCES}
...@@ -226,10 +226,10 @@ if (TEST_COVERAGE) ...@@ -226,10 +226,10 @@ if (TEST_COVERAGE)
target_link_libraries(numerics -lgcov) target_link_libraries(numerics -lgcov)
endif() endif()
# Request that particles be built with -std=c++11 # Request that particles be built with -std=c++17
# As this is a public compile feature anything that links to particles # As this is a public compile feature anything that links to particles
# will also build with -std=c++11 # will also build with -std=c++17
target_compile_features(numerics PUBLIC cxx_std_11) target_compile_features(numerics PUBLIC cxx_std_17)
target_link_libraries(numerics ${MPI_C_LIBRARIES}) target_link_libraries(numerics ${MPI_C_LIBRARIES})
if (NOT APPLE) if (NOT APPLE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment