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)