diff options
| author | Lu Qiuwen <[email protected]> | 2018-11-20 20:54:30 +0800 |
|---|---|---|
| committer | Lu Qiuwen <[email protected]> | 2018-11-20 20:54:30 +0800 |
| commit | c09859016782ddfe089b0d88816a32b2d53b0dd3 (patch) | |
| tree | 1f879e21d44c9010cbbe4ea15ce398979e64674e | |
| parent | 30fadc4f81c8622188938fc1d8fd723d1afa9264 (diff) | |
修正未指定安装路径时的默认安装位置的实现v3.0.3-20181120
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 52e9e0b..2f1ae17 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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 |
