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()