Skip to content

Commit 4ef7508

Browse files
committed
Add CufRuntime target
1 parent 18fbeda commit 4ef7508

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flang-rt/lib/CufRuntime/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#
77
#===------------------------------------------------------------------------===#
88

9+
# Phony build target that does not include the CUDA version.
10+
add_custom_target(CufRuntime)
11+
912
# libCufRuntime depends on a certain version of CUDA. To be able to have
1013
# multiple build of this library with different CUDA version, the version is
1114
# added to the library name.
@@ -19,6 +22,7 @@ add_flangrt_library(${CUFRT_LIBNAME}
1922
memory.cpp
2023
registration.cpp
2124
)
25+
add_dependencies(CufRuntime ${CUFRT_LIBNAME})
2226
target_include_directories(${CUFRT_LIBNAME} PRIVATE ${CUDAToolkit_INCLUDE_DIRS})
2327

2428
if (BUILD_SHARED_LIBS)

0 commit comments

Comments
 (0)