From 4a066be66a25fddcd06938a704d29d8ee79cfe71 Mon Sep 17 00:00:00 2001 From: Pawel Kurdybacha Date: Wed, 4 Jul 2018 22:30:22 +0100 Subject: [PATCH] Problem: #209 cppzmq fails with cmake 3.6.3 and above Solution: remove problematic cmake lines as they seem to be not necessary. --- cppzmqConfig.cmake.in | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cppzmqConfig.cmake.in b/cppzmqConfig.cmake.in index 11d7a2c..f596517 100644 --- a/cppzmqConfig.cmake.in +++ b/cppzmqConfig.cmake.in @@ -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() +