[Cmake-commits] [cmake-commits] king committed Linux-PGI-C.cmake 1.3 1.4 Linux-PGI-CXX.cmake 1.3 1.4 Linux-PGI-Fortran.cmake 1.3 1.4 Linux-PGI.cmake NONE 1.1
cmake-commits at cmake.org
cmake-commits at cmake.org
Fri Dec 4 10:21:59 EST 2009
Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv24709/Modules/Platform
Modified Files:
Linux-PGI-C.cmake Linux-PGI-CXX.cmake Linux-PGI-Fortran.cmake
Added Files:
Linux-PGI.cmake
Log Message:
Generalize support for Portland Group Compiler
We factor flags from Platform/Linux-PGI-Fortran.cmake into language
independent helper modules
Compiler/PGI.cmake
Platform/Linux-PGI.cmake
and invoke the macros from
Compiler/PGI-<lang>.cmake
Platform/Linux-PGI-<lang>.cmake
This enables general support for the PGI compilers.
--- NEW FILE: Linux-PGI.cmake ---
#=============================================================================
# Copyright 2002-2009 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_PGI)
return()
endif()
set(__LINUX_COMPILER_PGI 1)
macro(__linux_compiler_pgi lang)
# Shared library compile and link flags.
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared")
endmacro()
Index: Linux-PGI-Fortran.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-PGI-Fortran.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-PGI-Fortran.cmake 1 Dec 2009 19:25:21 -0000 1.3
--- Linux-PGI-Fortran.cmake 4 Dec 2009 15:21:57 -0000 1.4
***************
*** 1,7 ****
! SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
! SET(CMAKE_Fortran_FLAGS_INIT "-Mpreprocess -Kieee -fpic")
! SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g -O0 -Mbounds")
! SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-O2 -s")
! SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-fast -O3 -Mipa=fast")
! SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -gopt")
!
--- 1,2 ----
! include(Platform/Linux-PGI)
! __linux_compiler_pgi(Fortran)
Index: Linux-PGI-CXX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-PGI-CXX.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-PGI-CXX.cmake 1 Dec 2009 19:25:21 -0000 1.3
--- Linux-PGI-CXX.cmake 4 Dec 2009 15:21:57 -0000 1.4
***************
*** 1,2 ****
! SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
! SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
--- 1,2 ----
! include(Platform/Linux-PGI)
! __linux_compiler_pgi(CXX)
Index: Linux-PGI-C.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux-PGI-C.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** Linux-PGI-C.cmake 1 Dec 2009 19:25:21 -0000 1.3
--- Linux-PGI-C.cmake 4 Dec 2009 15:21:56 -0000 1.4
***************
*** 1,3 ****
! SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
! SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
!
--- 1,2 ----
! include(Platform/Linux-PGI)
! __linux_compiler_pgi(C)
More information about the Cmake-commits
mailing list