summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Haiku.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-30 12:31:53 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-30 12:31:53 (GMT)
commitf40406ed6bbb47e2b68e20cb7dd623a7961b090b (patch)
tree096425cfe6c1e8a6e0c96cddfb8069fe7a50da68 /Modules/Platform/Haiku.cmake
parent27c04be03a2fe47ee57a6bac339abb7f42aedfeb (diff)
downloadCMake-f40406ed6bbb47e2b68e20cb7dd623a7961b090b.zip
CMake-f40406ed6bbb47e2b68e20cb7dd623a7961b090b.tar.gz
CMake-f40406ed6bbb47e2b68e20cb7dd623a7961b090b.tar.bz2
Fix default install prefix on Haiku
Since Haiku does not have /usr (and therefore /usr/local), this commit changes the default install prefix to the equivalent directory of /boot/common. See issue #9607.
Diffstat (limited to 'Modules/Platform/Haiku.cmake')
-rw-r--r--Modules/Platform/Haiku.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Haiku.cmake b/Modules/Platform/Haiku.cmake
index 84ded80..6676f24 100644
--- a/Modules/Platform/Haiku.cmake
+++ b/Modules/Platform/Haiku.cmake
@@ -19,3 +19,8 @@ LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH /boot/common/bin)
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES /boot/common/lib)
LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH /boot/develop/headers/3rdparty)
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /boot/develop/lib/x86)
+
+IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
+ SET(CMAKE_INSTALL_PREFIX "/boot/common" CACHE PATH
+ "Install path prefix, prepended onto install directories." FORCE)
+ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)