CMake: mark the yaml-cpp target as IMPORTED.

This commit is contained in:
Pierre Wendling 2023-10-11 12:09:17 +02:00
parent 8a0a4835ee
commit 082fa7e31b
No known key found for this signature in database
GPG Key ID: 42824059D6D2FA0F

View File

@ -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