[PATCH] D51745: Add libgtest_main as a dependency of libLLVMTestingSupport
Derek Schuff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 6 11:38:30 PDT 2018
dschuff created this revision.
dschuff added a reviewer: zturner.
Herald added subscribers: aheejin, mgorny.
r341502 added an extern declaration of TestMainArgv0 in
testing/Support/SupportHelpers.cpp; It is defined in libgtest_main,
so add that as an explicit dependency of LLVMTestingSupport.
This fixes the BUILD_SHARED_LIBS build of LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D51745
Files:
lib/Testing/Support/CMakeLists.txt
Index: lib/Testing/Support/CMakeLists.txt
===================================================================
--- lib/Testing/Support/CMakeLists.txt
+++ lib/Testing/Support/CMakeLists.txt
@@ -16,4 +16,4 @@
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googletest/include)
include_directories(${LLVM_MAIN_SRC_DIR}/utils/unittest/googlemock/include)
-target_link_libraries(LLVMTestingSupport PRIVATE gtest)
+target_link_libraries(LLVMTestingSupport PRIVATE gtest gtest_main)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51745.164256.patch
Type: text/x-patch
Size: 487 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180906/7d8922fd/attachment.bin>
More information about the llvm-commits
mailing list