[Cmake-commits] [cmake-commits] king committed AIX-GNU-C.cmake NONE 1.1 AIX-GNU-CXX.cmake NONE 1.1 AIX-GNU-Fortran.cmake NONE 1.1 AIX-GNU.cmake NONE 1.1 AIX.cmake 1.22 1.23 BeOS.cmake 1.3 1.4 CYGWIN-GNU-C.cmake NONE 1.1 CYGWIN-GNU-CXX.cmake NONE 1.1 CYGWIN-GNU-Fortran.cmake NONE 1.1 CYGWIN-GNU.cmake NONE 1.1 CYGWIN-g77.cmake 1.4 NONE CYGWIN.cmake 1.21 1.22 HP-UX-GNU-C.cmake NONE 1.1 HP-UX-GNU-CXX.cmake NONE 1.1 HP-UX-GNU-Fortran.cmake NONE 1.1 HP-UX-GNU.cmake NONE 1.1 HP-UX.cmake 1.34 1.35 Haiku.cmake 1.4 1.5 Linux-GNU-Fortran.cmake 1.2 NONE Linux.cmake 1.20 1.21 QNX.cmake 1.11 1.12 SunOS-GNU-C.cmake NONE 1.1 SunOS-GNU-CXX.cmake NONE 1.1 SunOS-GNU.cmake NONE 1.1 SunOS.cmake 1.26 1.27 g77.cmake 1.2 NONE gcc.cmake 1.16 NONE
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Dec 2 09:52:04 EST 2009
Update of /cvsroot/CMake/CMake/Modules/Platform
In directory public:/mounts/ram/cvs-serv21811/Modules/Platform
Modified Files:
AIX.cmake BeOS.cmake CYGWIN.cmake HP-UX.cmake Haiku.cmake
Linux.cmake QNX.cmake SunOS.cmake
Added Files:
AIX-GNU-C.cmake AIX-GNU-CXX.cmake AIX-GNU-Fortran.cmake
AIX-GNU.cmake CYGWIN-GNU-C.cmake CYGWIN-GNU-CXX.cmake
CYGWIN-GNU-Fortran.cmake CYGWIN-GNU.cmake HP-UX-GNU-C.cmake
HP-UX-GNU-CXX.cmake HP-UX-GNU-Fortran.cmake HP-UX-GNU.cmake
SunOS-GNU-C.cmake SunOS-GNU-CXX.cmake SunOS-GNU.cmake
Removed Files:
CYGWIN-g77.cmake Linux-GNU-Fortran.cmake g77.cmake gcc.cmake
Log Message:
Split GNU compiler information files
This moves GNU compiler flags into new-style modules
Compiler/GNU-<lang>.cmake
Platform/<os>-GNU-<lang>.cmake
We use language-independent helper modules
Compiler/GNU.cmake
Platform/<os>-GNU.cmake
to define macros consolidating the information.
Index: SunOS.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/SunOS.cmake,v
retrieving revision 1.26
retrieving revision 1.27
diff -C 2 -d -r1.26 -r1.27
*** SunOS.cmake 21 Aug 2009 14:32:26 -0000 1.26
--- SunOS.cmake 2 Dec 2009 14:52:00 -0000 1.27
***************
*** 6,26 ****
ENDIF(CMAKE_SYSTEM MATCHES "SunOS-4.*")
- IF(CMAKE_SYSTEM MATCHES "SunOS-5.*")
- IF(CMAKE_COMPILER_IS_GNUCC)
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
- SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-R")
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
- SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-h")
- ENDIF(CMAKE_COMPILER_IS_GNUCC)
- IF(CMAKE_COMPILER_IS_GNUCXX)
- SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC")
- SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared")
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,-R")
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
- SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-h")
- ENDIF(CMAKE_COMPILER_IS_GNUCXX)
- ENDIF(CMAKE_SYSTEM MATCHES "SunOS-5.*")
-
IF(CMAKE_COMPILER_IS_GNUCXX)
IF(CMAKE_COMPILER_IS_GNUCC)
--- 6,9 ----
Index: Haiku.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Haiku.cmake,v
retrieving revision 1.4
retrieving revision 1.5
diff -C 2 -d -r1.4 -r1.5
*** Haiku.cmake 30 Sep 2009 12:31:51 -0000 1.4
--- Haiku.cmake 2 Dec 2009 14:52:00 -0000 1.5
***************
*** 1,7 ****
SET(BEOS 1)
- # GCC is the default compiler on Haiku.
- INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
-
SET(CMAKE_DL_LIBS root be)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
--- 1,4 ----
Index: HP-UX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/HP-UX.cmake,v
retrieving revision 1.34
retrieving revision 1.35
diff -C 2 -d -r1.34 -r1.35
*** HP-UX.cmake 19 Jun 2009 21:09:36 -0000 1.34
--- HP-UX.cmake 2 Dec 2009 14:51:59 -0000 1.35
***************
*** 16,26 ****
# fortran
IF(CMAKE_COMPILER_IS_GNUG77)
- SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") # -pic
- SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-shared -Wl,-E,-b,+nodefaultrpath") # -shared
- SET(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,+s,-E,+nodefaultrpath") # +s, flag for exe link to use shared lib
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,+b") # -rpath
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":") # : or empty
- SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,+h")
- SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-fPIC") # -pic
ELSE(CMAKE_COMPILER_IS_GNUG77)
# use ld directly to create shared libraries for hp cc
--- 16,19 ----
***************
*** 38,49 ****
# C compiler
IF(CMAKE_COMPILER_IS_GNUCC)
- # gnu gcc
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
- SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-E,-b,+nodefaultrpath") # -shared
- SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "-Wl,+s,-E,+nodefaultrpath") # +s, flag for exe link to use shared lib
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,+b") # -rpath
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty
- SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,+h")
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
ELSE(CMAKE_COMPILER_IS_GNUCC)
# hp cc
--- 31,34 ----
***************
*** 65,76 ****
# CXX compiler
IF(CMAKE_COMPILER_IS_GNUCXX)
- # for gnu C++
- SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic
- SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -Wl,-E,-b,+nodefaultrpath") # -shared
- SET(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "-Wl,+s,-E,+nodefaultrpath") # +s, flag for exe link to use shared lib
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-Wl,+b") # -rpath
- SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":") # : or empty
- SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-fPIC") # -pic
- SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,+h")
ELSE(CMAKE_COMPILER_IS_GNUCXX)
# for hp aCC
--- 50,53 ----
--- NEW FILE: SunOS-GNU.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(__SUNOS_COMPILER_GNU)
return()
endif()
set(__SUNOS_COMPILER_GNU 1)
macro(__sunos_compiler_gnu lang)
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()
--- NEW FILE: AIX-GNU-Fortran.cmake ---
include(Platform/AIX-GNU)
__aix_compiler_gnu(Fortran)
--- NEW FILE: AIX-GNU-C.cmake ---
include(Platform/AIX-GNU)
__aix_compiler_gnu(C)
--- Linux-GNU-Fortran.cmake DELETED ---
--- NEW FILE: CYGWIN-GNU.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(__CYGWIN_COMPILER_GNU)
return()
endif()
set(__CYGWIN_COMPILER_GNU 1)
set(CMAKE_DL_LIBS "-lgdi32" )
set(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--enable-auto-import")
set(CMAKE_CREATE_WIN32_EXE "-mwindows")
set(CMAKE_GNULD_IMAGE_VERSION
"-Wl,--major-image-version,<TARGET_VERSION_MAJOR>,--minor-image-version,<TARGET_VERSION_MINOR>")
macro(__cygwin_compiler_gnu lang)
# Binary link rules.
set(CMAKE_${lang}_CREATE_SHARED_MODULE
"<CMAKE_${lang}_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_${lang}_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS> -o <TARGET> ${CMAKE_GNULD_IMAGE_VERSION} <OBJECTS> <LINK_LIBRARIES>")
set(CMAKE_${lang}_CREATE_SHARED_LIBRARY
"<CMAKE_${lang}_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_${lang}_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <OBJECTS> <LINK_LIBRARIES>")
set(CMAKE_${lang}_LINK_EXECUTABLE
"<CMAKE_${lang}_COMPILER> <FLAGS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <LINK_LIBRARIES>")
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "") # No -fPIC on cygwin
# Initialize C link type selection flags. These flags are used when
# building a shared library, shared module, or executable that links
# to other libraries to select whether to use the static or shared
# versions of the libraries.
FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
SET(CMAKE_${type}_LINK_STATIC_${lang}_FLAGS "-Wl,-Bstatic")
SET(CMAKE_${type}_LINK_DYNAMIC_${lang}_FLAGS "-Wl,-Bdynamic")
ENDFOREACH(type)
# To simulate UNIX shared libs we export/import all DLL symbols.
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,--export-all-symbols -Wl,--enable-auto-import")
set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS}")
endmacro()
--- NEW FILE: HP-UX-GNU-C.cmake ---
include(Platform/HP-UX-GNU)
__hpux_compiler_gnu(C)
--- NEW FILE: CYGWIN-GNU-CXX.cmake ---
include(Platform/CYGWIN-GNU)
__cygwin_compiler_gnu(CXX)
--- NEW FILE: AIX-GNU-CXX.cmake ---
include(Platform/AIX-GNU)
__aix_compiler_gnu(CXX)
Index: Linux.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/Linux.cmake,v
retrieving revision 1.20
retrieving revision 1.21
diff -C 2 -d -r1.20 -r1.21
*** Linux.cmake 1 Dec 2009 19:25:21 -0000 1.20
--- Linux.cmake 2 Dec 2009 14:52:00 -0000 1.21
***************
*** 59,62 ****
SET_PROPERTY(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE)
ENDIF(EXISTS "/etc/debian_version")
- # always include the gcc compiler information
- INCLUDE(Platform/gcc)
--- 59,60 ----
Index: AIX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/AIX.cmake,v
retrieving revision 1.22
retrieving revision 1.23
diff -C 2 -d -r1.22 -r1.23
*** AIX.cmake 30 Sep 2009 13:37:34 -0000 1.22
--- AIX.cmake 2 Dec 2009 14:51:51 -0000 1.23
***************
*** 16,29 ****
SET_PROPERTY(GLOBAL PROPERTY TARGET_ARCHIVES_MAY_BE_SHARED_LIBS 1)
- # CXX Compiler
- IF(CMAKE_COMPILER_IS_GNUCXX)
- SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-shared -Wl,-G") # -shared
- ENDIF(CMAKE_COMPILER_IS_GNUCXX)
-
- # C Compiler
- IF(CMAKE_COMPILER_IS_GNUCC)
- SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,-G") # -shared
- ENDIF(CMAKE_COMPILER_IS_GNUCC)
-
# since .a can be a static or shared library on AIX, we can not do this.
# at some point if we wanted it, we would have to figure out if a .a is
--- 16,19 ----
--- NEW FILE: HP-UX-GNU.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(__HPUX_COMPILER_GNU)
return()
endif()
set(__HPUX_COMPILER_GNU 1)
macro(__hpux_compiler_gnu lang)
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,-E,-b,+nodefaultrpath")
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,+s,-E,+nodefaultrpath")
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,+b")
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,+h")
endmacro()
--- NEW FILE: CYGWIN-GNU-C.cmake ---
include(Platform/CYGWIN-GNU)
__cygwin_compiler_gnu(C)
--- NEW FILE: SunOS-GNU-CXX.cmake ---
include(Platform/SunOS-GNU)
__sunos_compiler_gnu(CXX)
--- NEW FILE: HP-UX-GNU-Fortran.cmake ---
include(Platform/HP-UX-GNU)
__hpux_compiler_gnu(Fortran)
Index: QNX.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/QNX.cmake,v
retrieving revision 1.11
retrieving revision 1.12
diff -C 2 -d -r1.11 -r1.12
*** QNX.cmake 21 Feb 2008 16:41:10 -0000 1.11
--- QNX.cmake 2 Dec 2009 14:52:00 -0000 1.12
***************
*** 1,7 ****
SET(QNXNTO 1)
- # GCC is the default compiler on QNX 6.3.
- INCLUDE(Platform/gcc)
-
# The QNX GCC does not seem to have -isystem so remove the flag.
SET(CMAKE_INCLUDE_SYSTEM_FLAG_C)
--- 1,4 ----
--- NEW FILE: CYGWIN-GNU-Fortran.cmake ---
include(Platform/CYGWIN-GNU)
__cygwin_compiler_gnu(Fortran)
--- NEW FILE: SunOS-GNU-C.cmake ---
include(Platform/SunOS-GNU)
__sunos_compiler_gnu(Fortran)
--- gcc.cmake DELETED ---
Index: BeOS.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/BeOS.cmake,v
retrieving revision 1.3
retrieving revision 1.4
diff -C 2 -d -r1.3 -r1.4
*** BeOS.cmake 10 Aug 2007 12:54:42 -0000 1.3
--- BeOS.cmake 2 Dec 2009 14:51:53 -0000 1.4
***************
*** 1,7 ****
SET(BEOS 1)
- # GCC is the default compiler on BeOS.
- INCLUDE(${CMAKE_ROOT}/Modules/Platform/gcc.cmake)
-
SET(CMAKE_DL_LIBS root be)
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
--- 1,4 ----
--- NEW FILE: AIX-GNU.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(__AIX_COMPILER_GNU)
return()
endif()
set(__AIX_COMPILER_GNU 1)
macro(__aix_compiler_gnu lang)
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,-G")
endmacro()
Index: CYGWIN.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/Platform/CYGWIN.cmake,v
retrieving revision 1.21
retrieving revision 1.22
diff -C 2 -d -r1.21 -r1.22
*** CYGWIN.cmake 27 May 2009 15:33:29 -0000 1.21
--- CYGWIN.cmake 2 Dec 2009 14:51:59 -0000 1.22
***************
*** 2,9 ****
SET(CYGWIN 1)
- SET(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,--enable-auto-import")
- SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -Wl,--export-all-symbols -Wl,--enable-auto-import")
- SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS ${CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS})
- SET(CMAKE_DL_LIBS "-lgdi32" )
SET(CMAKE_SHARED_LIBRARY_PREFIX "cyg")
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")
--- 2,5 ----
***************
*** 12,20 ****
SET(CMAKE_IMPORT_LIBRARY_PREFIX "lib")
SET(CMAKE_IMPORT_LIBRARY_SUFFIX ".dll.a")
- # no pic for gcc on cygwin
- SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
- SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "")
SET(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe
- SET(CMAKE_CREATE_WIN32_EXE "-mwindows")
# Modules have a different default prefix that shared libs.
SET(CMAKE_MODULE_EXISTS 1)
--- 8,12 ----
***************
*** 23,55 ****
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll" ".dll.a" ".a")
- SET(CMAKE_GNULD_IMAGE_VERSION
- "-Wl,--major-image-version,<TARGET_VERSION_MAJOR>,--minor-image-version,<TARGET_VERSION_MINOR>")
-
- SET(CMAKE_C_CREATE_SHARED_MODULE
- "<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_C_FLAGS> -o <TARGET> ${CMAKE_GNULD_IMAGE_VERSION} <OBJECTS> <LINK_LIBRARIES>")
- SET(CMAKE_CXX_CREATE_SHARED_MODULE
- "<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS> -o <TARGET> ${CMAKE_GNULD_IMAGE_VERSION} <OBJECTS> <LINK_LIBRARIES>")
-
- SET(CMAKE_C_CREATE_SHARED_LIBRARY
- "<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_C_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <OBJECTS> <LINK_LIBRARIES>")
- SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
- "<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CXX_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <OBJECTS> <LINK_LIBRARIES>")
-
- SET(CMAKE_C_LINK_EXECUTABLE
- "<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <LINK_LIBRARIES>")
- SET(CMAKE_CXX_LINK_EXECUTABLE
- "<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> -Wl,--out-implib,<TARGET_IMPLIB> ${CMAKE_GNULD_IMAGE_VERSION} <LINK_LIBRARIES>")
-
# Shared libraries on cygwin can be named with their version number.
SET(CMAKE_SHARED_LIBRARY_NAME_WITH_VERSION 1)
- # Initialize C link type selection flags. These flags are used when
- # building a shared library, shared module, or executable that links
- # to other libraries to select whether to use the static or shared
- # versions of the libraries.
- FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
- SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-Bstatic")
- SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-Bdynamic")
- ENDFOREACH(type)
-
INCLUDE(Platform/UnixPaths)
--- 15,20 ----
--- NEW FILE: HP-UX-GNU-CXX.cmake ---
include(Platform/HP-UX-GNU)
__hpux_compiler_gnu(CXX)
--- g77.cmake DELETED ---
--- CYGWIN-g77.cmake DELETED ---
More information about the Cmake-commits
mailing list