Fix the CMake build on Windows when using PThreads
[folly.git] / folly / ThreadName.cpp
index acd6163f66ca6be80d0de1e751e3c73a042042e1..3e2d9aab189218a34db1a0b5067ccaa7eb69fc6a 100644 (file)
@@ -58,7 +58,7 @@ bool canSetOtherThreadName() {
 }
 
 bool setThreadName(std::thread::id tid, StringPiece name) {
 }
 
 bool setThreadName(std::thread::id tid, StringPiece name) {
-#if !FOLLY_HAVE_PTHREAD
+#if !FOLLY_HAVE_PTHREAD || _WIN32
   return false;
 #else
   static_assert(
   return false;
 #else
   static_assert(