diff --git a/CMakeLists.txt b/CMakeLists.txt index 93f4356f..00c1d819 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,6 +44,14 @@ if(NOT TARGET c++) PROPERTIES IMPORTED_LOCATION ${c++} ) + + if(target MATCHES "win32") + target_link_options( + c++ + INTERFACE + /DEFAULTLIB:libcpmt$<$:d> + ) + endif() endif() if(NOT TARGET v8)