mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 17:27:49 +08:00
10 lines
460 B
CMake
10 lines
460 B
CMake
|
_find_package(${ARGS})
|
||
|
|
||
|
if(TARGET flecs::flecs AND NOT TARGET flecs::flecs_static)
|
||
|
add_library(flecs::flecs_static INTERFACE IMPORTED)
|
||
|
set_target_properties(flecs::flecs_static PROPERTIES INTERFACE_LINK_LIBRARIES flecs::flecs)
|
||
|
elseif(TARGET flecs::flecs_static AND NOT TARGET flecs::flecs)
|
||
|
add_library(flecs::flecs INTERFACE IMPORTED)
|
||
|
set_target_properties(flecs::flecs PROPERTIES INTERFACE_LINK_LIBRARIES flecs::flecs_static)
|
||
|
endif()
|