From 3ecd4b082bb7d137ecf9aebfdaae32d703cbe2ea Mon Sep 17 00:00:00 2001 From: Matteo Salvarezza Date: Fri, 23 Jul 2021 21:31:02 +0200 Subject: [PATCH] Fix Windows-GPU build for monolithic arch dll --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6966920a1bfe..090403f2deae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -759,16 +759,16 @@ elseif(MSVC) PRIVATE "$<$,$>:-Xcompiler=-MD -Gy /bigobj>") else() target_compile_options( - mxnet_${arch} + mxnet PRIVATE "$<$,$>:-Xcompiler=-MTd -Gy /bigobj>") target_compile_options( - mxnet_${arch} + mxnet PRIVATE "$<$,$>:-Xcompiler=-MT -Gy /bigobj>") target_compile_options( - mxnet_${arch} + mxnet PRIVATE "$<$,$>:-Xcompiler=-MT -Gy /bigobj>") target_compile_options( - mxnet_${arch} + mxnet PRIVATE "$<$,$>:-Xcompiler=-MT -Gy /bigobj>") endif() endif(USE_SPLIT_ARCH_DLL)