summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeGenericSystem.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2007-08-09 20:47:35 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2007-08-09 20:47:35 (GMT)
commit97b57fbaa4d36e9af2ada01ea7d8add24e27a832 (patch)
treecfb9f7214e00006dac985ee6d2dff749c5be4379 /Modules/CMakeGenericSystem.cmake
parent7b917000aa6ac9e1b999cace4fad33fe5267feca (diff)
downloadCMake-97b57fbaa4d36e9af2ada01ea7d8add24e27a832.zip
CMake-97b57fbaa4d36e9af2ada01ea7d8add24e27a832.tar.gz
CMake-97b57fbaa4d36e9af2ada01ea7d8add24e27a832.tar.bz2
BUG: use CMAKE_HOST_UNIX here instead of UNIX
Alex
Diffstat (limited to 'Modules/CMakeGenericSystem.cmake')
-rw-r--r--Modules/CMakeGenericSystem.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake
index 2b50622..fb4332d 100644
--- a/Modules/CMakeGenericSystem.cmake
+++ b/Modules/CMakeGenericSystem.cmake
@@ -47,10 +47,10 @@ IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
# Choose a default install prefix for this platform.
-IF(UNIX)
+IF(CMAKE_HOST_UNIX)
SET(CMAKE_INSTALL_PREFIX "/usr/local"
CACHE PATH "Install path prefix, prepended onto install directories.")
-ELSE(UNIX)
+ELSE(CMAKE_HOST_UNIX)
IF("$ENV{ProgramFiles}" MATCHES "^$")
IF("$ENV{SystemDrive}" MATCHES "^$")
SET(CMAKE_GENERIC_PROGRAM_FILES "C:/Program Files")
@@ -68,7 +68,7 @@ ELSE(UNIX)
# Make sure the prefix uses forward slashes.
STRING(REGEX REPLACE "\\\\" "/"
CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
-ENDIF(UNIX)
+ENDIF(CMAKE_HOST_UNIX)
MARK_AS_ADVANCED(
CMAKE_SKIP_RPATH