change install directory to /opt

This commit is contained in:
张壹
2021-07-31 16:07:15 +08:00
parent bc5671c373
commit e59ec89fed
3 changed files with 6 additions and 5 deletions

View File

@@ -7,7 +7,8 @@ if(${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Linux")
set(CMAKE_INSTALL_PREFIX /usr/local)
elseif (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Darwin")
message(STATUS "Platform: " ${CMAKE_HOST_SYSTEM_NAME})
set(CMAKE_INSTALL_PREFIX /usr/local)
# 安装到系统级用户软件目录
set(CMAKE_INSTALL_PREFIX /opt)
elseif (${CMAKE_HOST_SYSTEM_NAME} STREQUAL "Windows")
message(STATUS "Platform: " ${CMAKE_HOST_SYSTEM_NAME})
# 使用MinGW GCC编译时需取消注释