Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/linalg/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

# This must be before the target_sources_local(), so that the target is added as CUDA
# Set Kron.cpp to compile with CUDA compiler when USE_CUDA is enabled
# Use TARGET_DIRECTORY to explicitly specify the target scope (requires CMake 3.18+)
if(USE_CUDA)
set_source_files_properties(Kron.cpp DIRECTORY ${CMAKE_SOURCE_DIR} PROPERTIES LANGUAGE CUDA)
set_source_files_properties(Kron.cpp TARGET_DIRECTORY cytnx PROPERTIES LANGUAGE CUDA)
endif()

target_sources_local(cytnx
Expand Down
Loading