修正未指定安装路径时的默认安装位置的实现

This commit is contained in:
Lu Qiuwen
2018-11-20 20:54:30 +08:00
parent 30fadc4f81
commit c098590167

View File

@@ -13,10 +13,8 @@ if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
# It is not a legal location.
# Consider to the convention, we install the binary tree in /home
if(NOT CMAKE_INSTALL_PREFIX)
set(CMAKE_INSTALL_PREFIX /home/mesasoft/tfe)
if (CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
set (CMAKE_INSTALL_PREFIX "/home/mesasoft/tfe" CACHE PATH "default install path" FORCE )
endif()
# Global compile options