Skip to content

Commit f575053

Browse files
michaeldleslieMichael Leslie
authored andcommitted
only apply -lregex for qnx710 and newer
1 parent 7c07a86 commit f575053

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

googletest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ target_include_directories(gtest SYSTEM INTERFACE
147147
target_include_directories(gtest_main SYSTEM INTERFACE
148148
"$<BUILD_INTERFACE:${dirs}>"
149149
"$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
150-
if(CMAKE_SYSTEM_NAME MATCHES "QNX")
150+
if(CMAKE_SYSTEM_NAME MATCHES "QNX" AND CMAKE_SYSTEM_VERSION VERSION_GREATER_EQUAL 7.1)
151151
target_link_libraries(gtest PUBLIC regex)
152152
endif()
153153
target_link_libraries(gtest_main PUBLIC gtest)

0 commit comments

Comments
 (0)