Skip to content

Commit

Permalink
Missing CMake bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVlx committed Oct 10, 2018
1 parent b710acd commit 7441041
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/cmake/MCWAMP.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ endmacro(amp_target name )
####################
macro(add_mcwamp_library name )
add_library( ${name} ${ARGN} )
target_compile_definitions(${name} PUBLIC __HIPCC__)
amp_target(${name})
# LLVM and Clang shall be compiled beforehand
add_dependencies(${name} llvm-link opt clang rocdl)
Expand All @@ -62,6 +63,7 @@ endmacro(add_mcwamp_library name )
####################
macro(add_mcwamp_library_cpu name )
add_library( ${name} SHARED ${ARGN} )
target_compile_definitions(${name} PUBLIC __HIPCC__)
amp_target(${name})
# LLVM and Clang shall be compiled beforehand
add_dependencies(${name} llvm-link opt clang rocdl)
Expand All @@ -73,6 +75,7 @@ endmacro(add_mcwamp_library_cpu name )
####################
macro(add_mcwamp_library_hsa name )
add_library( ${name} SHARED ${ARGN} )
target_compile_definitions(${name} PUBLIC __HIPCC__)
amp_target(${name})
# LLVM and Clang shall be compiled beforehand
add_dependencies(${name} llvm-link opt clang hc_am rocdl)
Expand All @@ -85,6 +88,7 @@ endmacro(add_mcwamp_library_hsa name )

macro(add_mcwamp_library_hc_am name )
add_library( ${name} SHARED ${ARGN} )
target_compile_definitions(${name} PUBLIC __HIPCC__)
amp_target(${name})
# LLVM and Clang shall be compiled beforehand
add_dependencies(${name} llvm-link opt clang rocdl)
Expand Down

0 comments on commit 7441041

Please sign in to comment.