From 2a8c2af4d4ca1ec653c87c11a3f79a241b6b27e7 Mon Sep 17 00:00:00 2001
From: Chuck Atkins <chuck.atkins@kitware.com>
Date: Thu, 16 Mar 2017 06:00:19 -0400
Subject: [PATCH] SunOS: Move solaris-specific paths to the solaris platform

---
 Modules/Platform/SunOS.cmake     | 5 +++++
 Modules/Platform/UnixPaths.cmake | 2 --
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake
index 58398c06f7..e19e89a27d 100644
--- a/Modules/Platform/SunOS.cmake
+++ b/Modules/Platform/SunOS.cmake
@@ -9,6 +9,11 @@ endif()
 
 include(Platform/UnixPaths)
 
+list(APPEND CMAKE_SYSTEM_PREFIX_PATH
+  /opt/csw
+  /opt/openwin
+  )
+
 # The Sun linker needs to find transitive shared library dependencies
 # in the -L path.
 set(CMAKE_LINK_DEPENDENT_LIBRARY_DIRS 1)
diff --git a/Modules/Platform/UnixPaths.cmake b/Modules/Platform/UnixPaths.cmake
index 11b28f8374..48bbd40c4a 100644
--- a/Modules/Platform/UnixPaths.cmake
+++ b/Modules/Platform/UnixPaths.cmake
@@ -45,9 +45,7 @@ endif()
 list(APPEND CMAKE_SYSTEM_PREFIX_PATH
   /usr/X11R6
   /usr/pkg
-  /opt/csw
   /opt
-  /opt/openwin
   )
 
 # List common include file locations not under the common prefixes.
-- 
GitLab