pineapple-src/externals/vcpkg/ports/gflags/vcpkg-cmake-wrapper.cmake

11 lines
315 B
CMake
Raw Normal View History

2022-07-23 03:01:36 +02:00
set(GFLAGS_USE_TARGET_NAMESPACE ON)
_find_package(${ARGS})
foreach(tgt gflags gflags_shared gflags_static)
if (NOT TARGET ${tgt} AND TARGET "gflags::${tgt}")
add_library(${tgt} INTERFACE IMPORTED)
target_link_libraries(${tgt} INTERFACE "gflags::${tgt}")
endif()
endforeach(tgt)