From c598da4328d51a3b287d7fd42dc8b0a44ee9d85f Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 15 Jan 2008 14:19:32 -0500 Subject: [PATCH] BUG: fix for bug 6231, bad regex for sunos, worked by chance, but better to have it right --- Modules/Platform/SunOS.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Platform/SunOS.cmake b/Modules/Platform/SunOS.cmake index aa1e9337e..85e3d38e2 100644 --- a/Modules/Platform/SunOS.cmake +++ b/Modules/Platform/SunOS.cmake @@ -7,7 +7,7 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-4.*") SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h") ENDIF(CMAKE_SYSTEM MATCHES "SunOS-4.*") -IF(CMAKE_SYSTEM MATCHES "SunOS-5*.") +IF(CMAKE_SYSTEM MATCHES "SunOS-5.*") SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC") SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G") SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-R") @@ -44,7 +44,7 @@ IF(CMAKE_SYSTEM MATCHES "SunOS-5*.") SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-xO2 -DNDEBUG") SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-xO2") ENDIF(CMAKE_COMPILER_IS_GNUCXX) -ENDIF(CMAKE_SYSTEM MATCHES "SunOS-5*.") +ENDIF(CMAKE_SYSTEM MATCHES "SunOS-5.*") IF(CMAKE_COMPILER_IS_GNUCXX) IF(CMAKE_COMPILER_IS_GNUCC)