Skip to content

Commit 8fbbbc3

Browse files
committed
Fix ngscuda build
1 parent 0d9481d commit 8fbbbc3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ngscuda/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set_source_files_properties(cuda_linalg.cpp unifiedvector.cpp cuda_tasks.cpp dev
2727

2828
target_compile_options(${lib_name} PUBLIC $<$<COMPILE_LANGUAGE:CUDA>:--expt-relaxed-constexpr --extended-lambda >)
2929

30-
target_link_libraries(${lib_name} PUBLIC CUDA::cusparse CUDA::cublas CUDA::cudart ngsolve netgen_python)
30+
target_link_libraries(${lib_name} PUBLIC CUDA::cusparse CUDA::cublas CUDA::cudart ngsolve $<BUILD_INTERFACE:netgen_python>)
3131
set_target_properties(${lib_name} PROPERTIES POSITION_INDEPENDENT_CODE ON CUDA_SEPARABLE_COMPILATION ON)
3232
if(CMAKE_PROJECT_NAME STREQUAL "NGSolve")
3333
install( TARGETS ${lib_name} ${ngs_install_dir} )

0 commit comments

Comments
 (0)