Commit 5dc6cfd6 authored by Stafen Teleman's avatar Stafen Teleman Committed by Brad King
Browse files

Solaris: Add a CMAKE_HOST_SOLARIS variable (#16061)

parent 52dddefc
......@@ -175,6 +175,7 @@ Variables that Describe the System
* A new :variable:`CMAKE_HOST_SOLARIS` variable was introduced to
indicate when CMake is running on an Oracle Solaris host.
``True`` for Oracle Solaris operating systems.
Set to ``true`` when the host system is Oracle Solaris.
......@@ -1425,6 +1425,9 @@ void cmState::Snapshot::SetDefaultDefinitions()
this->SetDefinition("APPLE", "1");
this->SetDefinition("CMAKE_HOST_APPLE", "1");
#if defined(__sun__)
this->SetDefinition("CMAKE_HOST_SOLARIS", "1");
char temp[1024];
sprintf(temp, "%d", cmVersion::GetMinorVersion());
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment