1 diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt
2 index 5c1f0daf..ed8aae58 100644
3 --- a/googlemock/CMakeLists.txt
4 +++ b/googlemock/CMakeLists.txt
5 @@ -108,10 +108,10 @@ if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
6 string(REPLACE ";" "$<SEMICOLON>" dirs "${gmock_build_include_dirs}")
7 target_include_directories(gmock SYSTEM INTERFACE
8 "$<BUILD_INTERFACE:${dirs}>"
9 - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
10 + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
11 target_include_directories(gmock_main SYSTEM INTERFACE
12 "$<BUILD_INTERFACE:${dirs}>"
13 - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
14 + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
17 ########################################################################
18 diff --git a/googletest/CMakeLists.txt b/googletest/CMakeLists.txt
19 index aa00a5f3..50434fed 100644
20 --- a/googletest/CMakeLists.txt
21 +++ b/googletest/CMakeLists.txt
22 @@ -134,10 +134,10 @@ if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11")
23 string(REPLACE ";" "$<SEMICOLON>" dirs "${gtest_build_include_dirs}")
24 target_include_directories(gtest SYSTEM INTERFACE
25 "$<BUILD_INTERFACE:${dirs}>"
26 - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
27 + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
28 target_include_directories(gtest_main SYSTEM INTERFACE
29 "$<BUILD_INTERFACE:${dirs}>"
30 - "$<INSTALL_INTERFACE:$<INSTALL_PREFIX>/${CMAKE_INSTALL_INCLUDEDIR}>")
31 + "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>")
33 if(CMAKE_SYSTEM_NAME MATCHES "QNX")
34 target_link_libraries(gtest PUBLIC regex)