aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Leslie <michael.128.leslie@gmail.com>2024-01-10 11:34:22 -0800
committerMichael Leslie <mleslie@its.jnj.com>2024-01-10 11:48:14 -0800
commitf57505314bca32c5c5f186fd52c3cb720bf1853c (patch)
tree8b7e670ae38a7c8c0d62d5e12f66cd555582e42f
parent7c07a863693b0c831f80473f7c6905d7e458682c (diff)
downloadgoogletest-f57505314bca32c5c5f186fd52c3cb720bf1853c.tar.gz
only apply -lregex for qnx710 and newer
-rw-r--r--googletest/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
index 51a67c91..dce6a7c9 100644
--- a/googletest/CMakeLists.txt
+++ b/googletest/CMakeLists.txt
@@ -147,7 +147,7 @@ target_include_directories(gtest SYSTEM INTERFACE
target_include_directories(gtest_main SYSTEM INTERFACE
"$<BUILD_INTERFACE:${dirs}>"
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
-if(CMAKE_SYSTEM_NAME MATCHES "QNX")
+if(CMAKE_SYSTEM_NAME MATCHES "QNX" AND CMAKE_SYSTEM_VERSION VERSION_GREATER_EQUAL 7.1)
target_link_libraries(gtest PUBLIC regex)
endif()
target_link_libraries(gtest_main PUBLIC gtest)