From b19292e6b64263992cd049154015a6ef359473ef Mon Sep 17 00:00:00 2001 From: Dakota Hawkins Date: Thu, 23 Aug 2018 01:42:34 -0400 Subject: Use `$` in `target_include_directories` To make sure packages are relocatable, use `$` in `$` `target_include_directories`. `$` was introduced in CMake 2.8.11, which is already being checked for locally. References: - https://cmake.org/cmake/help/latest/manual/cmake-packages.7.html#id19 - https://github.com/robotology/how-to-export-cpp-library/blob/claudio/headeronly/src/LibTemplateCMake/CMakeLists.txt#L42 Signed-off-by: Dakota Hawkins --- googlemock/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'googlemock/CMakeLists.txt') diff --git a/googlemock/CMakeLists.txt b/googlemock/CMakeLists.txt index 195d2543..8a8de1f6 100644 --- a/googlemock/CMakeLists.txt +++ b/googlemock/CMakeLists.txt @@ -118,10 +118,10 @@ endif() if (DEFINED CMAKE_VERSION AND NOT "${CMAKE_VERSION}" VERSION_LESS "2.8.11") target_include_directories(gmock SYSTEM INTERFACE "$" - $) + "$/${CMAKE_INSTALL_INCLUDEDIR}>") target_include_directories(gmock_main SYSTEM INTERFACE "$" - $) + "$/${CMAKE_INSTALL_INCLUDEDIR}>") endif() ######################################################################## -- cgit v1.2.3