mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2025-04-04 07:21:33 +01:00
Update .dll copy for 7_libNVVM
This commit is contained in:
parent
7ee6db679e
commit
cc3d94f81c
@ -81,3 +81,12 @@ set_target_properties(mathfuncs64 PROPERTIES PREFIX "lib"
|
||||
OUTPUT_NAME "mathfuncs64"
|
||||
SUFFIX ".a" CUDA_SEPERABLE_COMPILATION ON)
|
||||
install(TARGETS cuda-c-linking mathfuncs64 DESTINATION bin)
|
||||
|
||||
if (WIN32)
|
||||
add_custom_command(
|
||||
TARGET cuda-c-linking
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:cuda-c-linking>"
|
||||
)
|
||||
endif ()
|
@ -53,10 +53,10 @@ add_custom_command(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/dsl-gpu64.ll" "$<TARGET_FILE_DIR:dsl>"
|
||||
)
|
||||
if (WIN32)
|
||||
add_custom_command(
|
||||
TARGET dsl
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:dsl>"
|
||||
)
|
||||
add_custom_command(
|
||||
TARGET dsl
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:dsl>"
|
||||
)
|
||||
endif ()
|
||||
|
@ -51,10 +51,10 @@ add_custom_command(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/test.ll" "$<TARGET_FILE_DIR:ptxgen>"
|
||||
)
|
||||
if (WIN32)
|
||||
add_custom_command(
|
||||
TARGET ptxgen
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:ptxgen>"
|
||||
)
|
||||
add_custom_command(
|
||||
TARGET ptxgen
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:ptxgen>"
|
||||
)
|
||||
endif ()
|
||||
|
@ -52,10 +52,10 @@ add_custom_command(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/simple-gpu64.ll" "$<TARGET_FILE_DIR:simple>"
|
||||
)
|
||||
if (WIN32)
|
||||
add_custom_command(
|
||||
TARGET simple
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:simple>"
|
||||
)
|
||||
add_custom_command(
|
||||
TARGET simple
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:simple>"
|
||||
)
|
||||
endif ()
|
||||
|
@ -56,10 +56,10 @@ add_custom_command(
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/uvmlite64.ll" "$<TARGET_FILE_DIR:uvmlite>"
|
||||
)
|
||||
if (WIN32)
|
||||
add_custom_command(
|
||||
TARGET uvmlite
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:uvmlite>"
|
||||
)
|
||||
add_custom_command(
|
||||
TARGET uvmlite
|
||||
POST_BUILD
|
||||
COMMAND ${CMAKE_COMMAND} -E copy_if_different
|
||||
"${CMAKE_BINARY_DIR}/nvvm64_40_0.dll" "$<TARGET_FILE_DIR:uvmlite>"
|
||||
)
|
||||
endif ()
|
||||
|
Loading…
x
Reference in New Issue
Block a user