diff --git a/CMakeLists.txt b/CMakeLists.txt index fa7c9653..fe67c670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1002,7 +1002,7 @@ if (NOT CMAKE_VERSION VERSION_LESS 3.0) export(EXPORT ${PROJECT_NAME}-targets FILE "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Targets.cmake") endif() -configure_package_config_file(${PROJECT_NAME}Config.cmake.in +configure_package_config_file(builds/cmake/${PROJECT_NAME}Config.cmake.in "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake" INSTALL_DESTINATION ${ZEROMQ_CMAKECONFIG_INSTALL_DIR}) write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake diff --git a/Makefile.am b/Makefile.am index b04a6114..964056fb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -869,7 +869,7 @@ endif EXTRA_DIST = \ FindSodium.cmake \ CMakeLists.txt \ - ZeroMQConfig.cmake.in \ + builds/cmake/ZeroMQConfig.cmake.in \ autogen.sh \ version.sh \ src/libzmq.pc.cmake.in \ diff --git a/ZeroMQConfig.cmake.in b/builds/cmake/ZeroMQConfig.cmake.in similarity index 100% rename from ZeroMQConfig.cmake.in rename to builds/cmake/ZeroMQConfig.cmake.in