Skip to content

Commit 0d6d36e

Browse files
committed
[offload][utils] - Add cmake install step for gpurun
- add_subdirectory(utils) in offload CMakeLists.txt - usage of new macro add_openmp_util to install utils into llvm/bin
1 parent e73d555 commit 0d6d36e

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

offload/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,3 +475,5 @@ if(OFFLOAD_INCLUDE_TESTS)
475475
add_subdirectory(test)
476476
add_subdirectory(unittests)
477477
endif()
478+
479+
add_subdirectory(utils)

offload/utils/CMakeLists.txt

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
set(OPENMP_UTILS_INSTALL_DIR "${CMAKE_INSTALL_BINDIR}" CACHE PATH
2+
"Path for binary subdirectory (defaults to '${CMAKE_INSTALL_BINDIR}')")
3+
4+
macro(add_openmp_util path)
5+
install(PROGRAMS
6+
${path}
7+
DESTINATION "${OPENMP_UTILS_INSTALL_DIR}")
8+
endmacro()
9+
10+
add_subdirectory(gpurun)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add_openmp_util(${CMAKE_CURRENT_SOURCE_DIR}/gpurun)
File renamed without changes.

0 commit comments

Comments
 (0)