Use a cmake glob for collecting hipify sources
Should make breaking this monstrosity into multiple files a bit
easier...
[ROCm/hip commit: be34a017ef]
This commit is contained in:
@@ -29,10 +29,9 @@ message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
|
||||
include_directories(${LLVM_INCLUDE_DIRS})
|
||||
link_directories(${LLVM_LIBRARY_DIRS})
|
||||
add_definitions(${LLVM_DEFINITIONS})
|
||||
add_llvm_executable(hipify-clang
|
||||
src/Cuda2Hip.cpp
|
||||
src/CUDA2HipMap.cpp
|
||||
)
|
||||
|
||||
file(GLOB_RECURSE HIPIFY_SOURCES src/*.cpp)
|
||||
add_llvm_executable(hipify-clang ${HIPIFY_SOURCES})
|
||||
|
||||
set(CMAKE_CXX_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang++)
|
||||
set(CMAKE_C_COMPILER ${LLVM_TOOLS_BINARY_DIR}/clang)
|
||||
|
||||
Reference in New Issue
Block a user