From 10254e7eaac325122d7e3aac48add32162c812f8 Mon Sep 17 00:00:00 2001 From: cyjseagull Date: Mon, 13 Sep 2021 18:03:39 +0800 Subject: [PATCH] update tarsProtocol to support install without root permission --- servant/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/servant/CMakeLists.txt b/servant/CMakeLists.txt index e0b0d06..db0a558 100644 --- a/servant/CMakeLists.txt +++ b/servant/CMakeLists.txt @@ -70,7 +70,7 @@ install(DIRECTORY . DESTINATION include/servant if(WIN32) INSTALL(FILES ${TARSPROTOCOLS} DESTINATION c:\\tarsproto\\protocol\\) elseif(APPLE) -INSTALL(FILES ${TARSPROTOCOLS} DESTINATION $ENV{HOME}/tarsproto/protocol/) +INSTALL(FILES ${TARSPROTOCOLS} DESTINATION ${CMAKE_INSTALL_PREFIX}/tarsproto/protocol/) elseif(UNIX) -INSTALL(FILES ${TARSPROTOCOLS} DESTINATION /home/tarsproto/protocol/) +INSTALL(FILES ${TARSPROTOCOLS} DESTINATION ${CMAKE_INSTALL_PREFIX}/tarsproto/protocol/) endif()