From 97b57fbaa4d36e9af2ada01ea7d8add24e27a832 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 9 Aug 2007 16:47:35 -0400 Subject: [PATCH] BUG: use CMAKE_HOST_UNIX here instead of UNIX Alex --- Modules/CMakeGenericSystem.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/CMakeGenericSystem.cmake b/Modules/CMakeGenericSystem.cmake index 2b506229a..fb4332ddf 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