mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +08:00
Problem: Missing ZeroMQ_INCLUDE_DIR when only static lib is built
This commit is contained in:
parent
27057263cd
commit
bb3fa9c048
@ -21,6 +21,11 @@ if(NOT TARGET libzmq AND NOT TARGET libzmq-static)
|
||||
|
||||
if (TARGET libzmq)
|
||||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR libzmq INTERFACE_INCLUDE_DIRECTORIES)
|
||||
else ()
|
||||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR libzmq-static INTERFACE_INCLUDE_DIRECTORIES)
|
||||
endif()
|
||||
|
||||
if (TARGET libzmq)
|
||||
get_target_property(@PROJECT_NAME@_LIBRARY libzmq LOCATION)
|
||||
endif()
|
||||
if (TARGET libzmq-static)
|
||||
|
Loading…
x
Reference in New Issue
Block a user