CMake: mark the yaml-cpp target as IMPORTED.
This commit is contained in:
parent
8a0a4835ee
commit
082fa7e31b
@ -19,7 +19,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/yaml-cpp-targets.cmake")
|
|||||||
# These are IMPORTED targets created by yaml-cpp-targets.cmake
|
# These are IMPORTED targets created by yaml-cpp-targets.cmake
|
||||||
set(YAML_CPP_LIBRARIES "@EXPORT_TARGETS@")
|
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)
|
target_link_libraries(yaml-cpp INTERFACE yaml-cpp::yaml-cpp)
|
||||||
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
|
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.17)
|
||||||
set_target_properties(yaml-cpp PROPERTIES
|
set_target_properties(yaml-cpp PROPERTIES
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user