We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 425333c commit 9ed9860Copy full SHA for 9ed9860
llvm/cmake/modules/AddLLVM.cmake
@@ -484,8 +484,10 @@ function(llvm_add_library name)
484
${ARG_LINK_LIBS})
485
foreach(link_lib ${LINK_LIBS_ARG_PUBLIC})
486
# Can't specify a dependence on -lpthread
487
- if(NOT ${link_lib} STREQUAL ${LLVM_PTHREAD_LIB})
488
- add_dependencies(${obj_name} ${link_lib})
+ if(LLVM_PTHREAD_LIB)
+ if(NOT ${link_lib} STREQUAL ${LLVM_PTHREAD_LIB})
489
+ add_dependencies(${obj_name} ${link_lib})
490
+ endif()
491
endif()
492
endforeach()
493
0 commit comments