Skip to content

Commit

Permalink
add target argument for cross compiling
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Sep 30, 2023
1 parent 4c6cf7e commit e0c6f4f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/lib/src/gpu/cudart/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ execute_process(
COMMAND
${Python_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/../../../../3rdparty/implib/implib-gen.py
${CUDART_LOCATION} COMMAND_ERROR_IS_FATAL ANY
${CUDART_LOCATION} --target ${CMAKE_SYSTEM_PROCESSOR} COMMAND_ERROR_IS_FATAL
ANY
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})

file(GLOB CUDA_STUB_SRC ${CMAKE_CURRENT_BINARY_DIR}/*.tramp.S
Expand Down

0 comments on commit e0c6f4f

Please sign in to comment.