[Lldb-commits] [lldb] r226053 - Don't try to link libpthread on Windows.

Zachary Turner zturner at google.com
Wed Jan 14 14:58:09 PST 2015


Author: zturner
Date: Wed Jan 14 16:58:09 2015
New Revision: 226053

URL: http://llvm.org/viewvc/llvm-project?rev=226053&view=rev
Log:
Don't try to link libpthread on Windows.

Modified:
    lldb/trunk/tools/lldb-mi/CMakeLists.txt

Modified: lldb/trunk/tools/lldb-mi/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/CMakeLists.txt?rev=226053&r1=226052&r2=226053&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/CMakeLists.txt (original)
+++ lldb/trunk/tools/lldb-mi/CMakeLists.txt Wed Jan 14 16:58:09 2015
@@ -164,7 +164,11 @@ add_lldb_executable(lldb-mi
   )
 endif ()
 
-target_link_libraries(lldb-mi liblldb pthread)
+target_link_libraries(lldb-mi liblldb)
+if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
+  target_link_libraries(lldb-mi pthread)
+endif ()
+
 # TODO: why isn't this done by add_lldb_executable?
 #target_link_libraries(lldb-mi ${LLDB_USED_LIBS})
 #llvm_config(lldb-mi ${LLVM_LINK_COMPONENTS})





More information about the lldb-commits mailing list