Problem: #209 cppzmq fails with cmake 3.6.3 and above

Solution: remove problematic cmake lines as they seem to be not necessary.
This commit is contained in:
Pawel Kurdybacha 2018-07-04 22:30:22 +01:00
parent 837c0c9a97
commit 4a066be66a

View File

@ -30,9 +30,7 @@ if(NOT ZeroMQ_FOUND)
endif()
if(NOT TARGET @PROJECT_NAME@)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
get_target_property(@PROJECT_NAME@_INCLUDE_DIR cppzmq INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(@PROJECT_NAME@_LIBRARY libzmq LOCATION)
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY libzmq-static LOCATION)
include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
get_target_property(@PROJECT_NAME@_INCLUDE_DIR cppzmq INTERFACE_INCLUDE_DIRECTORIES)
endif()