summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorStafen Teleman <stefan.teleman@oracle.com>2016-04-13 19:36:36 (GMT)
committerBrad King <brad.king@kitware.com>2016-04-15 17:25:45 (GMT)
commit5dc6cfd6ea304c6eb49e7f4555d6d9778854929b (patch)
tree99ed3d5fd669a17f071e9c4f5bfd225fcbea9899 /Source
parent52dddefcbbd2a79826fe9cb5b5fe787c6cdfe2a8 (diff)
downloadCMake-5dc6cfd6ea304c6eb49e7f4555d6d9778854929b.zip
CMake-5dc6cfd6ea304c6eb49e7f4555d6d9778854929b.tar.gz
CMake-5dc6cfd6ea304c6eb49e7f4555d6d9778854929b.tar.bz2
Solaris: Add a CMAKE_HOST_SOLARIS variable (#16061)
Diffstat (limited to 'Source')
-rw-r--r--Source/cmState.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index be8e418..7670c10 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -1425,6 +1425,9 @@ void cmState::Snapshot::SetDefaultDefinitions()
this->SetDefinition("APPLE", "1");
this->SetDefinition("CMAKE_HOST_APPLE", "1");
#endif
+ #if defined(__sun__)
+ this->SetDefinition("CMAKE_HOST_SOLARIS", "1");
+ #endif
char temp[1024];
sprintf(temp, "%d", cmVersion::GetMinorVersion());