From 082fa7e31b642ecfaff101cacc30b052b7daa587 Mon Sep 17 00:00:00 2001 From: Pierre Wendling Date: Wed, 11 Oct 2023 12:09:17 +0200 Subject: [PATCH] CMake: mark the yaml-cpp target as IMPORTED. --- yaml-cpp-config.cmake.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yaml-cpp-config.cmake.in b/yaml-cpp-config.cmake.in index 181ec28..f71e13b 100644 --- a/yaml-cpp-config.cmake.in +++ b/yaml-cpp-config.cmake.in @@ -19,7 +19,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/yaml-cpp-targets.cmake") # These are IMPORTED targets created by yaml-cpp-targets.cmake set(YAML_CPP_LIBRARIES "@EXPORT_TARGETS@") -add_library(yaml-cpp INTERFACE) +add_library(yaml-cpp INTERFACE IMPORTED) target_link_libraries(yaml-cpp INTERFACE yaml-cpp::yaml-cpp) if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17) set_target_properties(yaml-cpp PROPERTIES