--- a/src/boost.cmake
+++ b/src/boost.cmake
@@ -21,7 +21,7 @@
 endif()
 
 if(VERA_USE_SYSTEM_BOOST)
-  if(WIN32)
+  if(MSVC)
     # use boost static libs to avoid LNK2019 errors
     # feel free to contribute a better fix!
     set(Boost_USE_STATIC_LIBS ON)
