| 1 |
diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt |
| 2 |
index 5c1f0daf..606aeccb 100644 |
| 3 |
--- a/googlemock/CMakeLists.txt |
| 4 |
+++ b/googlemock/CMakeLists.txt |
| 5 |
@@ -106,12 +106,19 @@ endif() |
| 6 |
# in via add_subdirectory() rather than being a standalone build). |
| 7 |
if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11") |
| 8 |
string(REPLACE ";" "$<SEMICOLON>" dirs "${gmock_build_include_dirs}") |
| 9 |
- target_include_directories(gmock SYSTEM INTERFACE |
| 10 |
- "$<BUILD_INTERFACE:${dirs}>" |
| 11 |
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 12 |
- target_include_directories(gmock_main SYSTEM INTERFACE |
| 13 |
- "$<BUILD_INTERFACE:${dirs}>" |
| 14 |
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 15 |
+ if(QNX) |
| 16 |
+ target_include_directories(gmock SYSTEM INTERFACE |
| 17 |
+ "$<BUILD_INTERFACE:${dirs}>") |
| 18 |
+ target_include_directories(gmock_main SYSTEM INTERFACE |
| 19 |
+ "$<BUILD_INTERFACE:${dirs}>") |
| 20 |
+ else() |
| 21 |
+ target_include_directories(gmock SYSTEM INTERFACE |
| 22 |
+ "$<BUILD_INTERFACE:${dirs}>" |
| 23 |
+ "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 24 |
+ target_include_directories(gmock_main SYSTEM INTERFACE |
| 25 |
+ "$<BUILD_INTERFACE:${dirs}>" |
| 26 |
+ "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 27 |
+ endif() |
| 28 |
endif() |
| 29 |
|
| 30 |
######################################################################## |
| 31 |
diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt |
| 32 |
index 95bfa442..52665f49 100644 |
| 33 |
--- a/googletest/CMakeLists.txt |
| 34 |
+++ b/googletest/CMakeLists.txt |
| 35 |
@@ -148,12 +148,19 @@ set_target_properties(gtest_main PROPERTIES VERSION ${GOOGLETEST_VERSION}) |
| 36 |
# in via add_subdirectory() rather than being a standalone build). |
| 37 |
if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11") |
| 38 |
string(REPLACE ";" "$<SEMICOLON>" dirs "${gtest_build_include_dirs}") |
| 39 |
- target_include_directories(gtest SYSTEM INTERFACE |
| 40 |
- "$<BUILD_INTERFACE:${dirs}>" |
| 41 |
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 42 |
- target_include_directories(gtest_main SYSTEM INTERFACE |
| 43 |
- "$<BUILD_INTERFACE:${dirs}>" |
| 44 |
- "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 45 |
+ if(QNX) |
| 46 |
+ target_include_directories(gtest SYSTEM INTERFACE |
| 47 |
+ "$<BUILD_INTERFACE:${dirs}>") |
| 48 |
+ target_include_directories(gtest_main SYSTEM INTERFACE |
| 49 |
+ "$<BUILD_INTERFACE:${dirs}>") |
| 50 |
+ else() |
| 51 |
+ target_include_directories(gtest SYSTEM INTERFACE |
| 52 |
+ "$<BUILD_INTERFACE:${dirs}>" |
| 53 |
+ "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 54 |
+ target_include_directories(gtest_main SYSTEM INTERFACE |
| 55 |
+ "$<BUILD_INTERFACE:${dirs}>" |
| 56 |
+ "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>") |
| 57 |
+ endif() |
| 58 |
endif() |
| 59 |
if(CMAKE_SYSTEM_NAME MATCHES "QNX") |
| 60 |
target_link_libraries(gtest PUBLIC regex) |