Skip to content

Commit

Permalink
Problem: #209 cppzmq fails with cmake 3.6.3 and above
Browse files Browse the repository at this point in the history
Solution: remove problematic cmake lines as they seem to be not necessary.
  • Loading branch information
kurdybacha committed Jul 4, 2018
1 parent 837c0c9 commit 4a066be
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions cppzmqConfig.cmake.in
Expand Up @@ -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()

0 comments on commit 4a066be

Please sign in to comment.