From 4367591ad675ec8d31c511c7c48527e84773fce9 Mon Sep 17 00:00:00 2001 From: Jian-Hua Chen Date: Tue, 16 Jan 2018 16:13:02 +0800 Subject: [PATCH] fix installation source path of FindZeroMQ.cmake when cppzmq is not the root folder of cmake (i.e., it is embedded in a super project), CMAKE_SOURCE_DIR will not be the correct path to copy FindZeroMQ.cmake. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 83869284..16b2f557 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,5 +59,5 @@ install(EXPORT ${PROJECT_NAME}-targets install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR}) -install(FILES ${CMAKE_SOURCE_DIR}/libzmq-pkg-config/FindZeroMQ.cmake +install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/libzmq-pkg-config/FindZeroMQ.cmake DESTINATION ${CPPZMQ_CMAKECONFIG_INSTALL_DIR}/libzmq-pkg-config)