first commit
This commit is contained in:
8
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Absoft-Fortran.cmake
vendored
Normal file
8
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Absoft-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "")
|
||||
SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "")
|
||||
SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||
SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
|
||||
SET(CMAKE_Fortran_MODPATH_FLAG "-p")
|
||||
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Clang-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Clang-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Compiler/GNU-C)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Clang-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Clang-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Compiler/GNU-CXX)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Cray-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Cray-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
set(CMAKE_C_VERBOSE_FLAG "-v")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Cray-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Cray-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
set(CMAKE_CXX_VERBOSE_FLAG "-v")
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Cray-Fortran.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Cray-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
set(CMAKE_Fortran_MODOUT_FLAG -em)
|
||||
set(CMAKE_Fortran_MODDIR_FLAG -J)
|
||||
set(CMAKE_Fortran_MODDIR_DEFAULT .)
|
||||
7
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/G95-Fortran.cmake
vendored
Normal file
7
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/G95-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
set(CMAKE_Fortran_FLAGS_INIT "")
|
||||
set(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
set(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
|
||||
set(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||
set(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
|
||||
set(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
6
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-ASM.cmake
vendored
Normal file
6
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-ASM.cmake
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
# This file is loaded when gcc/g++ is used for assembler files (the "ASM" cmake language)
|
||||
include(Compiler/GNU)
|
||||
|
||||
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;S;asm)
|
||||
|
||||
__compiler_gnu(ASM)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Compiler/GNU)
|
||||
__compiler_gnu(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Compiler/GNU)
|
||||
__compiler_gnu(CXX)
|
||||
14
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-Fortran.cmake
vendored
Normal file
14
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
include(Compiler/GNU)
|
||||
__compiler_gnu(Fortran)
|
||||
|
||||
# No -DNDEBUG for Fortran.
|
||||
SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
|
||||
SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||
|
||||
# We require updates to CMake C++ code to support preprocessing rules
|
||||
# for Fortran.
|
||||
SET(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
|
||||
SET(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)
|
||||
|
||||
# Fortran-specific feature flags.
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG -J)
|
||||
38
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU.cmake
vendored
Normal file
38
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/GNU.cmake
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 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(__COMPILER_GNU)
|
||||
return()
|
||||
endif()
|
||||
set(__COMPILER_GNU 1)
|
||||
|
||||
macro(__compiler_gnu lang)
|
||||
# Feature flags.
|
||||
set(CMAKE_${lang}_VERBOSE_FLAG "-v")
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared")
|
||||
|
||||
# Initial configuration flags.
|
||||
set(CMAKE_${lang}_FLAGS_INIT "")
|
||||
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
|
||||
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
|
||||
set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
if(NOT APPLE)
|
||||
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
|
||||
endif(NOT APPLE)
|
||||
endmacro()
|
||||
3
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-ASM.cmake
vendored
Normal file
3
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-ASM.cmake
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
SET(CMAKE_ASM_VERBOSE_FLAG "-v")
|
||||
|
||||
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-C.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-C.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
SET(CMAKE_C_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
SET(CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-CXX.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-CXX.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
SET(CMAKE_CXX_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
SET(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/HP-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
13
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-ASM.cmake
vendored
Normal file
13
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-ASM.cmake
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
SET(CMAKE_ASM_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_ASM_FLAGS_INIT "")
|
||||
SET(CMAKE_ASM_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_ASM_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
|
||||
SET(CMAKE_ASM_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||
SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
|
||||
IF(UNIX)
|
||||
SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;S)
|
||||
ELSE(UNIX)
|
||||
SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm)
|
||||
ENDIF(UNIX)
|
||||
10
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-C.cmake
vendored
Normal file
10
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-C.cmake
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
SET(CMAKE_C_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_C_FLAGS_INIT "")
|
||||
SET(CMAKE_C_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
|
||||
SET(CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||
SET(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
|
||||
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>")
|
||||
10
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-CXX.cmake
vendored
Normal file
10
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-CXX.cmake
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
SET(CMAKE_CXX_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_INIT "")
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
|
||||
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>")
|
||||
7
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-Fortran.cmake
vendored
Normal file
7
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/Intel-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "")
|
||||
SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-Os")
|
||||
SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-O3")
|
||||
SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-O2 -g")
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
|
||||
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/MIPSpro-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/MIPSpro-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_C_VERBOSE_FLAG "-v")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/MIPSpro-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/MIPSpro-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_CXX_VERBOSE_FLAG "-v")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/MIPSpro-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/MIPSpro-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
32
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/NAG-Fortran.cmake
vendored
Normal file
32
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/NAG-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
# Help CMAKE_PARSE_IMPLICIT_LINK_INFO detect NAG Fortran object files.
|
||||
if(NOT CMAKE_Fortran_COMPILER_WORKS AND NOT CMAKE_Fortran_COMPILER_FORCED)
|
||||
message(STATUS "Detecting NAG Fortran directory")
|
||||
# Run with -dryrun to see sample "link" line.
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_Fortran_COMPILER} dummy.o -dryrun
|
||||
OUTPUT_VARIABLE _dryrun
|
||||
ERROR_VARIABLE _dryrun
|
||||
)
|
||||
# Match an object file.
|
||||
string(REGEX MATCH "/[^ ]*/[^ /][^ /]*\\.o" _nag_obj "${_dryrun}")
|
||||
if(_nag_obj)
|
||||
# Parse object directory and convert to a regex.
|
||||
string(REGEX REPLACE "/[^/]*$" "" _nag_dir "${_nag_obj}")
|
||||
string(REGEX REPLACE "([][+.*()^])" "\\\\\\1" _nag_regex "${_nag_dir}")
|
||||
set(CMAKE_Fortran_IMPLICIT_OBJECT_REGEX "^${_nag_regex}/")
|
||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeOutput.log
|
||||
"Detecting NAG Fortran directory with -dryrun found\n"
|
||||
" object: ${_nag_obj}\n"
|
||||
" directory: ${_nag_dir}\n"
|
||||
" regex: ${CMAKE_Fortran_IMPLICIT_OBJECT_REGEX}\n"
|
||||
"from output:\n${_dryrun}\n\n")
|
||||
message(STATUS "Detecting NAG Fortran directory - ${_nag_dir}")
|
||||
else()
|
||||
file(APPEND ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeError.log
|
||||
"Detecting NAG Fortran directory with -dryrun failed:\n${_dryrun}\n\n")
|
||||
message(STATUS "Detecting NAG Fortran directory - failed")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(CMAKE_Fortran_MODDIR_FLAG "-mdir ")
|
||||
set(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-PIC")
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI-C.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI-C.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Compiler/PGI)
|
||||
__compiler_pgi(C)
|
||||
set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
||||
set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG")
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI-CXX.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI-CXX.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Compiler/PGI)
|
||||
__compiler_pgi(CXX)
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT} -DNDEBUG")
|
||||
12
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI-Fortran.cmake
vendored
Normal file
12
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
include(Compiler/PGI)
|
||||
__compiler_pgi(Fortran)
|
||||
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "${CMAKE_Fortran_FLAGS_INIT} -Mpreprocess -Kieee")
|
||||
SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "${CMAKE_Fortran_FLAGS_DEBUG_INIT} -Mbounds")
|
||||
|
||||
# We require updates to CMake C++ code to support preprocessing rules
|
||||
# for Fortran.
|
||||
SET(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
|
||||
SET(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)
|
||||
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
|
||||
35
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI.cmake
vendored
Normal file
35
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PGI.cmake
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 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(__COMPILER_PGI)
|
||||
return()
|
||||
endif()
|
||||
set(__COMPILER_PGI 1)
|
||||
|
||||
macro(__compiler_pgi lang)
|
||||
# Feature flags.
|
||||
set(CMAKE_${lang}_VERBOSE_FLAG "-v")
|
||||
|
||||
# Initial configuration flags.
|
||||
set(CMAKE_${lang}_FLAGS_INIT "")
|
||||
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g -O0")
|
||||
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-O2 -s")
|
||||
set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-fast -O3 -Mipa=fast")
|
||||
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-O2 -gopt")
|
||||
|
||||
# Preprocessing and assembly rules.
|
||||
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
endmacro()
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale-C.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale-C.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Compiler/PathScale)
|
||||
__compiler_pathscale(C)
|
||||
set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
||||
set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG")
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale-CXX.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale-CXX.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Compiler/PathScale)
|
||||
__compiler_pathscale(CXX)
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT} -DNDEBUG")
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale-Fortran.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Compiler/PathScale)
|
||||
__compiler_pathscale(Fortran)
|
||||
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-module ")
|
||||
31
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale.cmake
vendored
Normal file
31
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/PathScale.cmake
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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 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(__COMPILER_PATHSCALE)
|
||||
return()
|
||||
endif()
|
||||
set(__COMPILER_PATHSCALE 1)
|
||||
|
||||
macro(__compiler_pathscale lang)
|
||||
# Feature flags.
|
||||
set(CMAKE_${lang}_VERBOSE_FLAG "-v")
|
||||
|
||||
# Initial configuration flags.
|
||||
set(CMAKE_${lang}_FLAGS_INIT "")
|
||||
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g -O0")
|
||||
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-Os")
|
||||
set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O3")
|
||||
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-g -O2")
|
||||
endmacro()
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SCO-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SCO-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Compiler/SCO)
|
||||
__compiler_sco(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SCO-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SCO-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Compiler/SCO)
|
||||
__compiler_sco(CXX)
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SCO.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SCO.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2011 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(__COMPILER_SCO)
|
||||
return()
|
||||
endif()
|
||||
set(__COMPILER_SCO 1)
|
||||
|
||||
macro(__compiler_sco lang)
|
||||
# Feature flags.
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-Kpic -belf")
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-belf -Wl,-Bexport")
|
||||
endmacro()
|
||||
24
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-ASM.cmake
vendored
Normal file
24
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-ASM.cmake
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )
|
||||
|
||||
SET(CMAKE_ASM_VERBOSE_FLAG "-#")
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_ASM_FLAGS "-KPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_ASM_FLAGS "-G")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_ASM_FLAG "-R")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_ASM_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_ASM_FLAG "-h")
|
||||
|
||||
SET(CMAKE_ASM_FLAGS_INIT "")
|
||||
SET(CMAKE_ASM_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_ASM_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
|
||||
SET(CMAKE_ASM_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
|
||||
SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")
|
||||
|
||||
# Initialize ASM 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_ASM_FLAGS "-Bstatic")
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_ASM_FLAGS "-Bdynamic")
|
||||
ENDFOREACH(type)
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-C.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-C.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
SET(CMAKE_C_VERBOSE_FLAG "-#")
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-KPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-G")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-R")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-h")
|
||||
|
||||
SET(CMAKE_C_FLAGS_INIT "")
|
||||
SET(CMAKE_C_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_C_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
|
||||
SET(CMAKE_C_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
|
||||
SET(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")
|
||||
|
||||
# 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 "-Bstatic")
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Bdynamic")
|
||||
ENDFOREACH(type)
|
||||
|
||||
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>")
|
||||
31
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-CXX.cmake
vendored
Normal file
31
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-CXX.cmake
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
SET(CMAKE_CXX_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-KPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-G")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG "-R")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_CXX_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-h")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_INIT "")
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
|
||||
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")
|
||||
|
||||
# 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_CXX_FLAGS "-Bstatic")
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS "-Bdynamic")
|
||||
ENDFOREACH(type)
|
||||
|
||||
SET(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
SET(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
|
||||
# Create archives with "CC -xar" in case user adds "-instances=extern"
|
||||
# so that template instantiations are available to archive members.
|
||||
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> -xar -o <TARGET> <OBJECTS> "
|
||||
"<CMAKE_RANLIB> <TARGET> ")
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-Fortran.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/SunPro-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
SET(CMAKE_Fortran_VERBOSE_FLAG "-v")
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_Fortran_FLAGS "-KPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-G")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-R")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-h")
|
||||
set(CMAKE_EXECUTABLE_RUNTIME_Fortran_FLAG "-R")
|
||||
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "")
|
||||
SET(CMAKE_Fortran_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_Fortran_FLAGS_MINSIZEREL_INIT "-xO2 -xspace -DNDEBUG")
|
||||
SET(CMAKE_Fortran_FLAGS_RELEASE_INIT "-xO3 -DNDEBUG")
|
||||
SET(CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT "-g -xO2")
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-moddir=")
|
||||
SET(CMAKE_Fortran_MODPATH_FLAG "-M")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/VisualAge-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/VisualAge-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Compiler/XL-C)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/VisualAge-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/VisualAge-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Compiler/XL-CXX)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/VisualAge-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/VisualAge-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Compiler/XL-Fortran)
|
||||
13
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-ASM.cmake
vendored
Normal file
13
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-ASM.cmake
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
SET(CMAKE_ASM_VERBOSE_FLAG "-V")
|
||||
|
||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||
# -qalias=noansi = Turns off type-based aliasing completely (safer optimizer)
|
||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||
SET(CMAKE_ASM_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e -qsourcetype=assembler")
|
||||
|
||||
SET(CMAKE_ASM_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_ASM_FLAGS_RELEASE_INIT "-O -DNDEBUG")
|
||||
SET(CMAKE_ASM_FLAGS_MINSIZEREL_INIT "-O -DNDEBUG")
|
||||
SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-g")
|
||||
|
||||
SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )
|
||||
9
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-C.cmake
vendored
Normal file
9
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-C.cmake
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
include(Compiler/XL)
|
||||
__compiler_xl(C)
|
||||
set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG")
|
||||
set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
||||
|
||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||
# -qalias=noansi = Turns off type-based aliasing completely (safer optimizer)
|
||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||
SET(CMAKE_C_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e")
|
||||
11
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-CXX.cmake
vendored
Normal file
11
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-CXX.cmake
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
include(Compiler/XL)
|
||||
__compiler_xl(CXX)
|
||||
set(CMAKE_CXX_FLAGS_RELEASE_INIT "${CMAKE_CXX_FLAGS_RELEASE_INIT} -DNDEBUG")
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "${CMAKE_CXX_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
||||
|
||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||
SET(CMAKE_CXX_FLAGS_INIT "-qthreaded -qhalt=e")
|
||||
|
||||
SET(CMAKE_CXX_COMPILE_OBJECT
|
||||
"<CMAKE_CXX_COMPILER> -+ <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||
14
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-Fortran.cmake
vendored
Normal file
14
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
include(Compiler/XL)
|
||||
__compiler_xl(Fortran)
|
||||
|
||||
SET(CMAKE_Fortran_MODDIR_FLAG "-qmoddir=")
|
||||
|
||||
SET(CMAKE_Fortran_DEFINE_FLAG "-WF,-D")
|
||||
|
||||
# -qthreaded = Ensures that all optimizations will be thread-safe
|
||||
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "-qthreaded -qhalt=e")
|
||||
|
||||
# We require updates to CMake C++ code to support preprocessing rules for Fortran.
|
||||
SET(CMAKE_Fortran_CREATE_PREPROCESSED_SOURCE)
|
||||
SET(CMAKE_Fortran_CREATE_ASSEMBLY_SOURCE)
|
||||
48
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL.cmake
vendored
Normal file
48
extern/cmake/2.85/share/cmake-2.8/Modules/Compiler/XL.cmake
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2002-2011 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(__COMPILER_XL)
|
||||
return()
|
||||
endif()
|
||||
set(__COMPILER_XL 1)
|
||||
|
||||
# Find the CreateExportList program that comes with this toolchain.
|
||||
find_program(CMAKE_XL_CreateExportList
|
||||
NAMES CreateExportList
|
||||
DOC "IBM XL CreateExportList tool"
|
||||
)
|
||||
|
||||
macro(__compiler_xl lang)
|
||||
# Feature flags.
|
||||
set(CMAKE_${lang}_VERBOSE_FLAG "-V")
|
||||
|
||||
set(CMAKE_${lang}_FLAGS_DEBUG_INIT "-g")
|
||||
set(CMAKE_${lang}_FLAGS_RELEASE_INIT "-O")
|
||||
set(CMAKE_${lang}_FLAGS_MINSIZEREL_INIT "-O")
|
||||
set(CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT "-g")
|
||||
set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
|
||||
# The compiler front-end passes all object files, archive files, and shared
|
||||
# library files named on the command line to CreateExportList to create a
|
||||
# list of all symbols to be exported from the shared library. This causes
|
||||
# all archive members to be copied into the shared library whether they are
|
||||
# needed or not. Instead we run the tool ourselves to pass only the object
|
||||
# files so that we export only the symbols actually provided by the sources.
|
||||
set(CMAKE_${lang}_CREATE_SHARED_LIBRARY
|
||||
"${CMAKE_XL_CreateExportList} <OBJECT_DIR>/objects.exp <OBJECTS>"
|
||||
"<CMAKE_${lang}_COMPILER> <CMAKE_SHARED_LIBRARY_${lang}_FLAGS> <LANGUAGE_COMPILE_FLAGS> <LINK_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS> -Wl,-bE:<OBJECT_DIR>/objects.exp <CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG><TARGET_SONAME> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>"
|
||||
)
|
||||
endmacro()
|
||||
Reference in New Issue
Block a user