[Cmake-commits] [cmake-commits] king committed Linux-PathScale-C.cmake NONE 1.1 Linux-PathScale-CXX.cmake NONE 1.1 Linux-PathScale-Fortran.cmake NONE 1.1 Linux-PathScale.cmake NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Thu Jan 21 09:09:32 EST 2010
Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv30725/Modules/Platform
Added Files:
Linux-PathScale-C.cmake Linux-PathScale-CXX.cmake
Linux-PathScale-Fortran.cmake Linux-PathScale.cmake
Log Message:
Add PathScale shared library flags on Linux
We add platform-specific compiler information files
Platform/Linux-PathScale-<lang>.cmake
to enable -fPIC and -shared flags for shared libraries.
--- NEW FILE: Linux-PathScale-C.cmake ---
include(Platform/Linux-PathScale)
__linux_compiler_pathscale(C)
--- NEW FILE: Linux-PathScale-Fortran.cmake ---
include(Platform/Linux-PathScale)
__linux_compiler_pathscale(Fortran)
--- NEW FILE: Linux-PathScale-CXX.cmake ---
include(Platform/Linux-PathScale)
__linux_compiler_pathscale(CXX)
--- NEW FILE: Linux-PathScale.cmake ---
#=============================================================================
# Copyright 2002-2010 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 distributed 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(__LINUX_COMPILER_PATHSCALE)
return()
endif()
set(__LINUX_COMPILER_PATHSCALE 1)
macro(__linux_compiler_pathscale lang)
# Shared library compile and link flags.
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared")
endmacro()
More information about the Cmake-commits
mailing list