summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCopybara-Service <copybara-worker@google.com>2022-01-10 22:56:50 (GMT)
committerCopybara-Service <copybara-worker@google.com>2022-01-10 22:56:50 (GMT)
commit1d9f7c5fb2f56b4321b9eec0731b874eb6eef466 (patch)
treed498698fa3c11ce5631e5f2e3b483e53340e74ff
parent6b74da4757a549563d7c37c8fae3e704662a043b (diff)
parent4745746725f45f1053b7ac8b1ac7fd5787da7b46 (diff)
downloadgoogletest-1d9f7c5fb2f56b4321b9eec0731b874eb6eef466.zip
googletest-1d9f7c5fb2f56b4321b9eec0731b874eb6eef466.tar.gz
googletest-1d9f7c5fb2f56b4321b9eec0731b874eb6eef466.tar.bz2
Merge pull request #3713 from PhilipMourdjis:cmake-qnx-link-regex
PiperOrigin-RevId: 420863433 Change-Id: Ie8c43caff6fb2493ecd47bed50de9db87221f46f
-rw-r--r--googletest/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
index 15b8f0c..eb03bfa 100644
--- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt
@@ -138,6 +138,9 @@ if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
"$<BUILD_INTERFACE:${gtest_build_include_dirs}>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
endif()
+if(CMAKE_SYSTEM_NAME MATCHES "QNX")
+ target_link_libraries(gtest PUBLIC regex)
+endif()
target_link_libraries(gtest_main PUBLIC gtest)
########################################################################