Skip to content

Commit

Permalink
set the c++ standard to 14
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Steinbach committed Nov 29, 2018
1 parent e2a810d commit 37e3f7c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/samples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ find_package(hip)
find_package(rocfft)

add_executable(complex_forward_1d complex_forward_1d.cpp)
target_compile_features( complex_forward_1d PRIVATE cxx_static_assert cxx_nullptr cxx_lambdas cxx_auto_type )
#target_compile_features( complex_forward_1d PRIVATE cxx_static_assert cxx_nullptr cxx_lambdas cxx_auto_type )
target_link_libraries( complex_forward_1d PRIVATE roc::rocfft hip::hip_hcc )
target_include_directories( complex_forward_1d PRIVATE ${rocfft_INCLUDE_DIR} )
set_target_properties( complex_forward_1d PROPERTIES
CXX_STANDARD_REQUIRED ON)
set_target_properties( complex_forward_1d PROPERTIES
CXX_STANDARD 14)

if( CMAKE_CXX_COMPILER MATCHES ".*/hcc$" )
# Remove following when hcc is fixed; hcc emits following spurious warning ROCm v1.6.1
# "clang-5.0: warning: argument unused during compilation: '-isystem /opt/rocm/include'"
target_compile_options( complex_forward_1d PRIVATE -Wno-unused-command-line-argument )
set_target_properties( complex_forward_1d PROPERTIES
CXX_EXTENSIONS OFF)

set_target_properties( complex_forward_1d PROPERTIES CXX_EXTENSIONS OFF)

# foreach( target ${AMDGPU_TARGETS} )
# target_link_libraries( rocfft-selftest PRIVATE --amdgpu-target=${target} )
# endforeach( )
Expand Down

0 comments on commit 37e3f7c

Please sign in to comment.