diff --git a/CMakeLists.txt b/CMakeLists.txt index b901f41c29f2..9b6b45ca8d46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -760,16 +760,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)