summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEthan <ycm_hy@163.com>2021-12-29 07:22:12 +0800
committerGitHub <noreply@github.com>2021-12-28 15:22:12 -0800
commit7d4a895c8c684c724c2cfbf383c1094e81621cc0 (patch)
tree60966ec1a66f4f9774467efab5d7798b9f389e1a
parentbb59a9f2a4b4fb4c7ee0ab622eb0bdc8a24a5167 (diff)
downloadnanomsg-7d4a895c8c684c724c2cfbf383c1094e81621cc0.tar.gz
build success as a 3rdparty (#1045)
Co-authored-by: yichengming <yichengming@sensetime.com>
-rw-r--r--src/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7ca00eb..5656dfe 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -393,7 +393,7 @@ write_basic_package_version_file(
COMPATIBILITY SameMajorVersion
)
configure_package_config_file(
- ${CMAKE_SOURCE_DIR}/cmake/${PROJECT_NAME}-config.cmake.in
+ ${PROJECT_SOURCE_DIR}/cmake/${PROJECT_NAME}-config.cmake.in
${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config.cmake
INSTALL_DESTINATION ${PACKAGE_INSTALL_DESTINATION}
PATH_VARS CMAKE_INSTALL_PREFIX