Skip to content

Commit

Permalink
fix alpaka_add_library relocatable device code (#2273)
Browse files Browse the repository at this point in the history
  • Loading branch information
ichinii authored May 21, 2024
1 parent 8dbe7c4 commit 9b15e66
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/addLibrary.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
# Using a macro to stay in the scope (fixes lost assignment of linker command in FindHIP.cmake)
# https://github.com/ROCm-Developer-Tools/HIP/issues/631

macro(alpaka_add_library libraryName)
macro(alpaka_add_library In_Name)
# add_library( <name> [STATIC | SHARED | MODULE] [EXCLUDE_FROM_ALL] [<source>...])

add_library(${libraryName} ${ARGN})
add_library(${In_Name} ${ARGN})

if(alpaka_ACC_GPU_CUDA_ENABLE)
enable_language(CUDA)
Expand Down

0 comments on commit 9b15e66

Please sign in to comment.