--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -833,7 +833,7 @@
   libtesseract
   PROPERTIES
     OUTPUT_NAME
-    tesseract$<$<BOOL:${WIN32}>:${VERSION_MAJOR}${VERSION_MINOR}$<$<CONFIG:DEBUG>:d>>
+    tesseract$<$<BOOL:${MSVC}>:${VERSION_MAJOR}${VERSION_MINOR}$<$<CONFIG:DEBUG>:d>>
 )
 
 if(SW_BUILD)
