vcpkg/ports/czmq/vcpkg-cmake-wrapper.cmake
myd7349 fb4cc37262 [czmq] Add new port (#4979)
* [czmq] Add new port

* [czmq] Modernize

* [czmq] Update to 2019-05-17

* [czmq] Update to 2019-05-29

* [czmq] Fix OpenSSL not found issue on x64-windows

* [czmq] Update portfile.cmake

* [czmq] Update to 2019-06-10

* [czmq] Clean

* [czmq] Add Homepage

* [czmq] Use vcpkg_check_features

* [czmq] Disable parallel configuration

* Fix typo when using feature options
2019-07-02 15:23:53 -07:00

10 lines
380 B
CMake

_find_package(${ARGS})
if(TARGET czmq AND NOT TARGET czmq-static)
add_library(czmq-static INTERFACE IMPORTED)
set_target_properties(czmq-static PROPERTIES INTERFACE_LINK_LIBRARIES czmq)
elseif(TARGET czmq-static AND NOT TARGET czmq)
add_library(czmq INTERFACE IMPORTED)
set_target_properties(czmq PROPERTIES INTERFACE_LINK_LIBRARIES czmq-static)
endif()