diff options
author | Michael Leslie <michael.128.leslie@gmail.com> | 2024-01-10 19:34:22 (GMT) |
---|---|---|
committer | Michael Leslie <mleslie@its.jnj.com> | 2024-01-10 19:48:14 (GMT) |
commit | f57505314bca32c5c5f186fd52c3cb720bf1853c (patch) | |
tree | 8b7e670ae38a7c8c0d62d5e12f66cd555582e42f | |
parent | 7c07a863693b0c831f80473f7c6905d7e458682c (diff) | |
download | googletest-f57505314bca32c5c5f186fd52c3cb720bf1853c.zip googletest-f57505314bca32c5c5f186fd52c3cb720bf1853c.tar.gz googletest-f57505314bca32c5c5f186fd52c3cb720bf1853c.tar.bz2 |
only apply -lregex for qnx710 and newerrefs/pull/4444/head
-rw-r--r-- | googletest/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt index 51a67c9..dce6a7c 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) |