From 235f6ef1bfa0b98a7edf744ffb76328a742bf398 Mon Sep 17 00:00:00 2001 From: WolframRhodium Date: Fri, 24 Nov 2023 06:49:34 +0800 Subject: [PATCH] CMakeLists.txt: fix linker flags --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62ce73a..4de9932 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -175,7 +175,7 @@ if(ENABLE_CUDA) target_include_directories(dfttest2_nvrtc PRIVATE ${CMAKE_CURRENT_BINARY_DIR}) if (WIN32) - target_link_options(dfttest2_cuda PRIVATE "delayimp.lib") + target_link_options(dfttest2_cuda PRIVATE "delayimp.lib" ${CMAKE_SHARED_LINKER_FLAGS}) endif() endif() # ENABLE_CUDA