aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2020-07-15 16:25:56 +0200
committerEike Ziller <eike.ziller@qt.io>2020-07-17 06:34:35 +0000
commita065175d58c04f3919886e1e7e3d1103dac59eb1 (patch)
tree23170885a4545c3221f5626f2df25d81a2ab30a6 /cmake
parentded5c64d5391185214f45f01e6661dff6cffdea5 (diff)
CMake build: Fix configuring with CMake 3.10 and external yaml-cpp
CMake 3.10 does not allow using target_include_directories with INTERFACE on imported targets. https://gitlab.kitware.com/cmake/cmake/-/issues/15689 Fixes: QTCREATORBUG-24356 Change-Id: I2427276f0851010cda2321c45eff0628713af2ff Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Findyaml-cpp.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Findyaml-cpp.cmake b/cmake/Findyaml-cpp.cmake
index 3d5828ebd8..d8e92f070d 100644
--- a/cmake/Findyaml-cpp.cmake
+++ b/cmake/Findyaml-cpp.cmake
@@ -15,7 +15,7 @@ if (yaml-cpp_FOUND)
unset(yaml_cpp_include_dir CACHE)
find_path(yaml_cpp_include_dir yaml-cpp/yaml.h)
endif()
- target_include_directories(yaml-cpp INTERFACE ${yaml_cpp_include_dir})
+ set_target_properties(yaml-cpp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${yaml_cpp_include_dir}")
else()
set(yaml-cpp_FOUND 1)
set_package_properties(yaml-cpp PROPERTIES DESCRIPTION "using internal src/libs/3rdparty/yaml-cpp")