BUG: use CMAKE_HOST_UNIX here instead of UNIX

Alex
This commit is contained in:
Alexander Neundorf 2007-08-09 16:47:35 -04:00
parent 7b917000aa
commit 97b57fbaa4
1 changed files with 3 additions and 3 deletions

View File

@ -47,10 +47,10 @@ IF(NOT DEFINED CMAKE_INSTALL_PREFIX)
ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX) ENDIF(NOT DEFINED CMAKE_INSTALL_PREFIX)
# Choose a default install prefix for this platform. # Choose a default install prefix for this platform.
IF(UNIX) IF(CMAKE_HOST_UNIX)
SET(CMAKE_INSTALL_PREFIX "/usr/local" SET(CMAKE_INSTALL_PREFIX "/usr/local"
CACHE PATH "Install path prefix, prepended onto install directories.") CACHE PATH "Install path prefix, prepended onto install directories.")
ELSE(UNIX) ELSE(CMAKE_HOST_UNIX)
IF("$ENV{ProgramFiles}" MATCHES "^$") IF("$ENV{ProgramFiles}" MATCHES "^$")
IF("$ENV{SystemDrive}" MATCHES "^$") IF("$ENV{SystemDrive}" MATCHES "^$")
SET(CMAKE_GENERIC_PROGRAM_FILES "C:/Program Files") SET(CMAKE_GENERIC_PROGRAM_FILES "C:/Program Files")
@ -68,7 +68,7 @@ ELSE(UNIX)
# Make sure the prefix uses forward slashes. # Make sure the prefix uses forward slashes.
STRING(REGEX REPLACE "\\\\" "/" STRING(REGEX REPLACE "\\\\" "/"
CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
ENDIF(UNIX) ENDIF(CMAKE_HOST_UNIX)
MARK_AS_ADVANCED( MARK_AS_ADVANCED(
CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH