diff options
author | Brad King <brad.king@kitware.com> | 2016-06-06 09:01:00 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-06-06 09:01:00 -0400 |
commit | cd1327bb9cceb092d5ec04330bf035c533086b48 (patch) | |
tree | a5b272186d1115e06c806e2e5cc50dc60aa6f0b5 /Modules | |
parent | 236b7cbe6ef6c53b17fa240ea599f7b65e0b705f (diff) | |
parent | fcfe121fd82fcb24c9f40f052cb20d403c92edb7 (diff) | |
download | cmake-cd1327bb9cceb092d5ec04330bf035c533086b48.tar.gz |
Merge branch 'SunOS-PathScale' into release
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Platform/SunOS-PathScale-C.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/SunOS-PathScale-CXX.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/SunOS-PathScale-Fortran.cmake | 2 | ||||
-rw-r--r-- | Modules/Platform/SunOS-PathScale.cmake | 31 |
4 files changed, 37 insertions, 0 deletions
diff --git a/Modules/Platform/SunOS-PathScale-C.cmake b/Modules/Platform/SunOS-PathScale-C.cmake new file mode 100644 index 0000000000..2f78da1127 --- /dev/null +++ b/Modules/Platform/SunOS-PathScale-C.cmake @@ -0,0 +1,2 @@ +include(Platform/SunOS-PathScale) +__sunos_compiler_pathscale(C) diff --git a/Modules/Platform/SunOS-PathScale-CXX.cmake b/Modules/Platform/SunOS-PathScale-CXX.cmake new file mode 100644 index 0000000000..bb79d86600 --- /dev/null +++ b/Modules/Platform/SunOS-PathScale-CXX.cmake @@ -0,0 +1,2 @@ +include(Platform/SunOS-PathScale) +__sunos_compiler_pathscale(CXX) diff --git a/Modules/Platform/SunOS-PathScale-Fortran.cmake b/Modules/Platform/SunOS-PathScale-Fortran.cmake new file mode 100644 index 0000000000..3c202f795b --- /dev/null +++ b/Modules/Platform/SunOS-PathScale-Fortran.cmake @@ -0,0 +1,2 @@ +include(Platform/SunOS-PathScale) +__sunos_compiler_pathscale(Fortran) diff --git a/Modules/Platform/SunOS-PathScale.cmake b/Modules/Platform/SunOS-PathScale.cmake new file mode 100644 index 0000000000..1afe56a202 --- /dev/null +++ b/Modules/Platform/SunOS-PathScale.cmake @@ -0,0 +1,31 @@ + +#============================================================================= +# Copyright 2016 Kitware, Inc. +# +# Distributed under the OSI-approved BSD License (the "License"); +# see accompanying file Copyright.txt for details. +# +# This software is distributed WITHOUT ANY WARRANTY; without even the +# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# See the License for more information. +#============================================================================= +# (To distribute this file outside of CMake, substitute the full +# License text for the above reference.) + +# This module is shared by multiple languages; use include blocker. +if(__SUNOS_COMPILER_PATHSCALE) + return() +endif() +set(__SUNOS_COMPILER_PATHSCALE 1) + +macro(__sunos_compiler_pathscale lang) + # Shared library compile and link flags. + set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "-fPIC") + set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "-fPIE") + set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC") + set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared") + + set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-R") + set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":") + set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,-h") +endmacro() |