first commit
This commit is contained in:
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-GNU)
|
||||
__aix_compiler_gnu(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-GNU)
|
||||
__aix_compiler_gnu(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-GNU)
|
||||
__aix_compiler_gnu(Fortran)
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-GNU.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__AIX_COMPILER_GNU)
|
||||
return()
|
||||
endif()
|
||||
set(__AIX_COMPILER_GNU 1)
|
||||
|
||||
macro(__aix_compiler_gnu lang)
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-blibpath:")
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,-G")
|
||||
endmacro()
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-VisualAge-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-VisualAge-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/AIX-XL-C)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-VisualAge-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-VisualAge-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/AIX-XL-CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-ASM.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-ASM.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-XL)
|
||||
__aix_compiler_xl(ASM)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-XL)
|
||||
__aix_compiler_xl(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-XL)
|
||||
__aix_compiler_xl(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/AIX-XL)
|
||||
__aix_compiler_xl(Fortran)
|
||||
28
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL.cmake
vendored
Normal file
28
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX-XL.cmake
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__AIX_COMPILER_XL)
|
||||
return()
|
||||
endif()
|
||||
set(__AIX_COMPILER_XL 1)
|
||||
|
||||
macro(__aix_compiler_xl lang)
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-blibpath:")
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-G -Wl,-brtl,-bnoipath") # -shared
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,-brtl,-bnoipath,-bexpall") # +s, flag for exe link to use shared lib
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS " ")
|
||||
set(CMAKE_SHARED_MODULE_${lang}_FLAGS " ")
|
||||
endmacro()
|
||||
29
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX.cmake
vendored
Normal file
29
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/AIX.cmake
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".so") # .so
|
||||
SET(CMAKE_DL_LIBS "-lld")
|
||||
|
||||
# RPATH support on AIX is called libpath. By default the runtime
|
||||
# libpath is paths specified by -L followed by /usr/lib and /lib. In
|
||||
# order to prevent the -L paths from being used we must force use of
|
||||
# -Wl,-blibpath:/usr/lib:/lib whether RPATH support is on or not.
|
||||
# When our own RPATH is to be added it may be inserted before the
|
||||
# "always" paths.
|
||||
SET(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib /lib)
|
||||
|
||||
# Files named "libfoo.a" may actually be shared libraries.
|
||||
SET_PROPERTY(GLOBAL PROPERTY TARGET_ARCHIVES_MAY_BE_SHARED_LIBS 1)
|
||||
|
||||
# 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
|
||||
# static or shared, then we could add this back:
|
||||
|
||||
# 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)
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BSDOS.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BSDOS.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
|
||||
10
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BeOS.cmake
vendored
Normal file
10
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BeOS.cmake
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
SET(BEOS 1)
|
||||
|
||||
SET(CMAKE_DL_LIBS root be)
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-nostart")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
40
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneL.cmake
vendored
Normal file
40
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneL.cmake
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
#the compute nodes on BlueGene/L don't support shared libs
|
||||
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "") # -shared
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
|
||||
|
||||
SET(CMAKE_LINK_LIBRARY_SUFFIX "")
|
||||
SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".a") # .a
|
||||
SET(CMAKE_EXECUTABLE_SUFFIX "") # .exe
|
||||
SET(CMAKE_DL_LIBS "" )
|
||||
|
||||
SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
|
||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
||||
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCC)
|
||||
SET(CMAKE_C_LINK_EXECUTABLE
|
||||
"<CMAKE_C_COMPILER> -Wl,-relax <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lgcc,-lc -lnss_files -lnss_dns -lresolv")
|
||||
ELSE(CMAKE_COMPILER_IS_GNUCC)
|
||||
# when using IBM xlc we probably don't want to link to -lgcc
|
||||
SET(CMAKE_C_LINK_EXECUTABLE
|
||||
"<CMAKE_C_COMPILER> -Wl,-relax <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lc -lnss_files -lnss_dns -lresolv")
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_LINK_EXECUTABLE
|
||||
"<CMAKE_CXX_COMPILER> -Wl,-relax <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lstdc++,-lgcc,-lc -lnss_files -lnss_dns -lresolv")
|
||||
ELSE(CMAKE_COMPILER_IS_GNUCXX)
|
||||
# when using the IBM xlC we probably don't want to link to -lgcc
|
||||
SET(CMAKE_CXX_LINK_EXECUTABLE
|
||||
"<CMAKE_CXX_COMPILER> -Wl,-relax <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES> -Wl,-lstdc++,-lc -lnss_files -lnss_dns -lresolv")
|
||||
ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
118
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-base.cmake
vendored
Normal file
118
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-base.cmake
vendored
Normal file
@@ -0,0 +1,118 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
#
|
||||
# BlueGeneP base platform file.
|
||||
#
|
||||
# NOTE: Do not set your platform to "BlueGeneP-base". This file is included
|
||||
# by the real platform files. Use one of these two platforms instead:
|
||||
#
|
||||
# BlueGeneP-dynamic For dynamically linked builds
|
||||
# BlueGeneP-static For statically linked builds
|
||||
#
|
||||
# This platform file tries its best to adhere to the behavior of the MPI
|
||||
# compiler wrappers included with the latest BG/P drivers.
|
||||
#
|
||||
|
||||
|
||||
#
|
||||
# For BGP builds, we're cross compiling, but we don't want to re-root things
|
||||
# (e.g. with CMAKE_FIND_ROOT_PATH) because users may have libraries anywhere on
|
||||
# the shared filesystems, and this may lie outside the root. Instead, we set the
|
||||
# system directories so that the various system BGP CNK library locations are
|
||||
# searched first. This is not the clearest thing in the world, given IBM's driver
|
||||
# layout, but this should cover all the standard ones.
|
||||
#
|
||||
set(CMAKE_SYSTEM_LIBRARY_PATH
|
||||
/bgsys/drivers/ppcfloor/comm/default/lib # default comm layer (used by mpi compiler wrappers)
|
||||
/bgsys/drivers/ppcfloor/comm/sys/lib # DCMF, other lower-level comm libraries
|
||||
/bgsys/drivers/ppcfloor/runtime/SPI # other low-level stuff
|
||||
/bgsys/drivers/ppcfloor/gnu-linux/lib # CNK python installation directory
|
||||
/bgsys/drivers/ppcfloor/gnu-linux/powerpc-bgp-linux/lib # CNK Linux image -- standard runtime libs, pthread, etc.
|
||||
)
|
||||
|
||||
#
|
||||
# This adds directories that find commands should specifically ignore for cross compiles.
|
||||
# Most of these directories are the includeand lib directories for the frontend on BG/P systems.
|
||||
# Not ignoring these can cause things like FindX11 to find a frontend PPC version mistakenly.
|
||||
# We use this on BG instead of re-rooting because backend libraries are typically strewn about
|
||||
# the filesystem, and we can't re-root ALL backend libraries to a single place.
|
||||
#
|
||||
set(CMAKE_SYSTEM_IGNORE_PATH
|
||||
/lib /lib64 /include
|
||||
/usr/lib /usr/lib64 /usr/include
|
||||
/usr/local/lib /usr/local/lib64 /usr/local/include
|
||||
/usr/X11/lib /usr/X11/lib64 /usr/X11/include
|
||||
/usr/lib/X11 /usr/lib64/X11 /usr/include/X11
|
||||
/usr/X11R6/lib /usr/X11R6/lib64 /usr/X11R6/include
|
||||
/usr/X11R7/lib /usr/X11R7/lib64 /usr/X11R7/include
|
||||
)
|
||||
|
||||
#
|
||||
# Indicate that this is a unix-like system
|
||||
#
|
||||
set(UNIX 1)
|
||||
|
||||
#
|
||||
# Library prefixes, suffixes, extra libs.
|
||||
#
|
||||
set(CMAKE_LINK_LIBRARY_SUFFIX "")
|
||||
set(CMAKE_STATIC_LIBRARY_PREFIX "lib") # lib
|
||||
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a") # .a
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
|
||||
set(CMAKE_SHARED_LIBRARY_SUFFIX ".so") # .so
|
||||
set(CMAKE_EXECUTABLE_SUFFIX "") # .exe
|
||||
set(CMAKE_DL_LIBS "dl")
|
||||
|
||||
#
|
||||
# This macro needs to be called for dynamic library support. Unfortunately on BGP,
|
||||
# We can't support both static and dynamic links in the same platform file. The
|
||||
# dynamic link platform file needs to call this explicitly to set up dynamic linking.
|
||||
#
|
||||
macro(__BlueGeneP_set_dynamic_flags compiler_id lang)
|
||||
if (${compiler_id} STREQUAL XL)
|
||||
# Flags for XL compilers if we explicitly detected XL
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-qpic") # -pic
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-qmkshrobj -qnostaticlink") # -shared
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-rpath,") # -rpath
|
||||
set(BGP_${lang}_DYNAMIC_EXE_FLAGS "-qnostaticlink -qnostaticlink=libgcc")
|
||||
else()
|
||||
# Assume flags for GNU compilers (if the ID is GNU *or* anything else).
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC") # -pic
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared") # -shared
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "-Wl,-rpath,") # -rpath
|
||||
set(BGP_${lang}_DYNAMIC_EXE_FLAGS "-dynamic")
|
||||
endif()
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "") # +s, flag for exe link to use shared lib
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":") # : or empty
|
||||
|
||||
set(BGP_${lang}_DEFAULT_EXE_FLAGS
|
||||
"<FLAGS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
set(CMAKE_${lang}_LINK_EXECUTABLE
|
||||
"<CMAKE_${lang}_COMPILER> -Wl,-relax ${BGP_${lang}_DYNAMIC_EXE_FLAGS} ${BGP_${lang}_DEFAULT_EXE_FLAGS}")
|
||||
endmacro()
|
||||
|
||||
#
|
||||
# This macro needs to be called for static builds. Right now it just adds -Wl,-relax
|
||||
# to the link line.
|
||||
#
|
||||
macro(__BlueGeneP_set_static_flags compiler_id lang)
|
||||
set(BGP_${lang}_DEFAULT_EXE_FLAGS
|
||||
"<FLAGS> <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
set(CMAKE_${lang}_LINK_EXECUTABLE
|
||||
"<CMAKE_${lang}_COMPILER> -Wl,-relax ${BGP_${lang}_DEFAULT_EXE_FLAGS}")
|
||||
endmacro()
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-GNU-C.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_dynamic_flags(GNU C)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-GNU-CXX.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_dynamic_flags(GNU CXX)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-GNU-Fortran.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_dynamic_flags(GNU Fortran)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-XL-C.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-XL-C.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_dynamic_flags(XL C)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-XL-CXX.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-XL-CXX.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_dynamic_flags(XL CXX)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-XL-Fortran.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic-XL-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_dynamic_flags(XL Fortran)
|
||||
19
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic.cmake
vendored
Normal file
19
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-dynamic.cmake
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
include(Platform/BlueGeneP-base)
|
||||
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS TRUE)
|
||||
set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ".so" ".a")
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-GNU-C.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_static_flags(GNU C)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-GNU-CXX.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_static_flags(GNU CXX)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-GNU-Fortran.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_static_flags(GNU Fortran)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-XL-C.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-XL-C.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_static_flags(XL C)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-XL-CXX.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-XL-CXX.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_static_flags(XL CXX)
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-XL-Fortran.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static-XL-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
__BlueGeneP_set_static_flags(XL Fortran)
|
||||
19
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static.cmake
vendored
Normal file
19
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/BlueGeneP-static.cmake
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 2010 Kitware, Inc.
|
||||
# Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
|
||||
#
|
||||
# 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.)
|
||||
|
||||
include(Platform/BlueGeneP-base)
|
||||
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
|
||||
set(CMAKE_FIND_LIBRARY_PREFIXES "lib")
|
||||
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/CYGWIN-GNU)
|
||||
__cygwin_compiler_gnu(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/CYGWIN-GNU)
|
||||
__cygwin_compiler_gnu(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/CYGWIN-GNU)
|
||||
__cygwin_compiler_gnu(Fortran)
|
||||
53
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU.cmake
vendored
Normal file
53
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-GNU.cmake
vendored
Normal file
@@ -0,0 +1,53 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__CYGWIN_COMPILER_GNU)
|
||||
return()
|
||||
endif()
|
||||
set(__CYGWIN_COMPILER_GNU 1)
|
||||
|
||||
# TODO: Is -Wl,--enable-auto-import now always default?
|
||||
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>")
|
||||
set(CMAKE_GENERATOR_RC windres)
|
||||
enable_language(RC)
|
||||
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)
|
||||
|
||||
set(CMAKE_EXE_EXPORTS_${lang}_FLAG "-Wl,--export-all-symbols")
|
||||
# TODO: Is -Wl,--enable-auto-import now always default?
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS} -Wl,--enable-auto-import")
|
||||
set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS}")
|
||||
endmacro()
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-windres.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN-windres.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_RC_COMPILE_OBJECT "<CMAKE_RC_COMPILER> -O coff <FLAGS> <DEFINES> <SOURCE> <OBJECT>")
|
||||
64
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN.cmake
vendored
Normal file
64
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/CYGWIN.cmake
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
if("${CMAKE_MINIMUM_REQUIRED_VERSION}" VERSION_LESS "2.8.3.20101214")
|
||||
set(__USE_CMAKE_LEGACY_CYGWIN_WIN32 1)
|
||||
endif()
|
||||
if(NOT DEFINED WIN32)
|
||||
set(WIN32 0)
|
||||
if(DEFINED __USE_CMAKE_LEGACY_CYGWIN_WIN32)
|
||||
if(NOT DEFINED CMAKE_LEGACY_CYGWIN_WIN32
|
||||
AND DEFINED ENV{CMAKE_LEGACY_CYGWIN_WIN32})
|
||||
set(CMAKE_LEGACY_CYGWIN_WIN32 $ENV{CMAKE_LEGACY_CYGWIN_WIN32})
|
||||
endif()
|
||||
if(CMAKE_LEGACY_CYGWIN_WIN32)
|
||||
message(STATUS "Defining WIN32 under Cygwin due to CMAKE_LEGACY_CYGWIN_WIN32")
|
||||
set(WIN32 1)
|
||||
elseif("x${CMAKE_LEGACY_CYGWIN_WIN32}" STREQUAL "x")
|
||||
message(WARNING "CMake no longer defines WIN32 on Cygwin!"
|
||||
"\n"
|
||||
"(1) If you are just trying to build this project, ignore this warning "
|
||||
"or quiet it by setting CMAKE_LEGACY_CYGWIN_WIN32=0 in your environment or "
|
||||
"in the CMake cache. "
|
||||
"If later configuration or build errors occur then this project may "
|
||||
"have been written under the assumption that Cygwin is WIN32. "
|
||||
"In that case, set CMAKE_LEGACY_CYGWIN_WIN32=1 instead."
|
||||
"\n"
|
||||
"(2) If you are developing this project, add the line\n"
|
||||
" set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required\n"
|
||||
"at the top of your top-level CMakeLists.txt file or set the minimum "
|
||||
"required version of CMake to 2.8.4 or higher. "
|
||||
"Then teach your project to build on Cygwin without WIN32.")
|
||||
endif()
|
||||
elseif(DEFINED CMAKE_LEGACY_CYGWIN_WIN32)
|
||||
message(AUTHOR_WARNING "CMAKE_LEGACY_CYGWIN_WIN32 ignored because\n"
|
||||
" cmake_minimum_required(VERSION ${CMAKE_MINIMUM_REQUIRED_VERSION})\n"
|
||||
"is at least 2.8.4.")
|
||||
endif()
|
||||
endif()
|
||||
if(DEFINED __USE_CMAKE_LEGACY_CYGWIN_WIN32)
|
||||
# Pass WIN32 legacy setting to scripts.
|
||||
if(WIN32)
|
||||
set(ENV{CMAKE_LEGACY_CYGWIN_WIN32} 1)
|
||||
else()
|
||||
set(ENV{CMAKE_LEGACY_CYGWIN_WIN32} 0)
|
||||
endif()
|
||||
unset(__USE_CMAKE_LEGACY_CYGWIN_WIN32)
|
||||
endif()
|
||||
|
||||
SET(CYGWIN 1)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "cyg")
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dll")
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX "cyg")
|
||||
SET(CMAKE_SHARED_MODULE_SUFFIX ".dll")
|
||||
SET(CMAKE_IMPORT_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_IMPORT_LIBRARY_SUFFIX ".dll.a")
|
||||
SET(CMAKE_EXECUTABLE_SUFFIX ".exe") # .exe
|
||||
# Modules have a different default prefix that shared libs.
|
||||
SET(CMAKE_MODULE_EXISTS 1)
|
||||
|
||||
SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
|
||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dll.a" ".a")
|
||||
|
||||
# Shared libraries on cygwin can be named with their version number.
|
||||
SET(CMAKE_SHARED_LIBRARY_NAME_WITH_VERSION 1)
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
26
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Catamount.cmake
vendored
Normal file
26
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Catamount.cmake
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
#Catamount, which runs on the compute nodes of Cray machines, e.g. RedStorm, doesn't support shared libs
|
||||
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "") # -pic
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "") # -shared
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "") # -rpath
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
|
||||
|
||||
SET(CMAKE_LINK_LIBRARY_SUFFIX "")
|
||||
SET(CMAKE_STATIC_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib") # lib
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".a") # .a
|
||||
SET(CMAKE_EXECUTABLE_SUFFIX "") # .exe
|
||||
SET(CMAKE_DL_LIBS "" )
|
||||
|
||||
SET(CMAKE_FIND_LIBRARY_PREFIXES "lib")
|
||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
|
||||
SET(CMAKE_CXX_LINK_SHARED_LIBRARY)
|
||||
SET(CMAKE_CXX_LINK_MODULE_LIBRARY)
|
||||
SET(CMAKE_C_LINK_SHARED_LIBRARY)
|
||||
SET(CMAKE_C_LINK_MODULE_LIBRARY)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-Absoft-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-Absoft-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
set(CMAKE_Fortran_VERBOSE_FLAG "-X -v") # Runs gcc under the hood.
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU-C.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Platform/Darwin-GNU)
|
||||
__darwin_compiler_gnu(C)
|
||||
cmake_gnu_has_isysroot(C)
|
||||
cmake_gnu_set_osx_deployment_target_flag(C)
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU-CXX.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
include(Platform/Darwin-GNU)
|
||||
__darwin_compiler_gnu(CXX)
|
||||
cmake_gnu_has_isysroot(CXX)
|
||||
cmake_gnu_set_osx_deployment_target_flag(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Darwin-GNU)
|
||||
__darwin_compiler_gnu(Fortran)
|
||||
64
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU.cmake
vendored
Normal file
64
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-GNU.cmake
vendored
Normal file
@@ -0,0 +1,64 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__DARWIN_COMPILER_GNU)
|
||||
return()
|
||||
endif()
|
||||
set(__DARWIN_COMPILER_GNU 1)
|
||||
|
||||
macro(__darwin_compiler_gnu lang)
|
||||
# GNU does not have -shared on OS X
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names")
|
||||
set(CMAKE_SHARED_MODULE_CREATE_${lang}_FLAGS "-bundle -Wl,-headerpad_max_install_names")
|
||||
endmacro()
|
||||
|
||||
macro(cmake_gnu_has_isysroot lang)
|
||||
if("x${CMAKE_${lang}_HAS_ISYSROOT}" STREQUAL "x")
|
||||
set(_doc "${lang} compiler has -isysroot")
|
||||
message(STATUS "Checking whether ${_doc}")
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_${lang}_COMPILER} "-v" "--help"
|
||||
OUTPUT_VARIABLE _gcc_help
|
||||
ERROR_VARIABLE _gcc_help
|
||||
)
|
||||
if("${_gcc_help}" MATCHES "isysroot")
|
||||
message(STATUS "Checking whether ${_doc} - yes")
|
||||
set(CMAKE_${lang}_HAS_ISYSROOT 1)
|
||||
else()
|
||||
message(STATUS "Checking whether ${_doc} - no")
|
||||
set(CMAKE_${lang}_HAS_ISYSROOT 0)
|
||||
endif()
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
macro(cmake_gnu_set_osx_deployment_target_flag lang)
|
||||
if(NOT DEFINED CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG)
|
||||
set(_doc "${lang} compiler supports OSX deployment target flag")
|
||||
message(STATUS "Checking whether ${_doc}")
|
||||
execute_process(
|
||||
COMMAND ${CMAKE_${lang}_COMPILER} "-v" "--help"
|
||||
OUTPUT_VARIABLE _gcc_help
|
||||
ERROR_VARIABLE _gcc_help
|
||||
)
|
||||
if("${_gcc_help}" MATCHES "macosx-version-min")
|
||||
message(STATUS "Checking whether ${_doc} - yes")
|
||||
set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "-mmacosx-version-min=")
|
||||
else()
|
||||
message(STATUS "Checking whether ${_doc} - no")
|
||||
set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG "")
|
||||
endif()
|
||||
set(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG_CODE "SET(CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG \"${CMAKE_${lang}_OSX_DEPLOYMENT_TARGET_FLAG}\")")
|
||||
endif()
|
||||
endmacro()
|
||||
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-NAG-Fortran.cmake
vendored
Normal file
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-NAG-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood.
|
||||
|
||||
# Need -fpp explicitly on case-insensitive filesystem.
|
||||
set(CMAKE_Fortran_COMPILE_OBJECT
|
||||
"<CMAKE_Fortran_COMPILER> -fpp -o <OBJECT> <DEFINES> <FLAGS> -c <SOURCE>")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-VisualAge-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-VisualAge-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/Darwin-XL-C)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-VisualAge-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-VisualAge-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/Darwin-XL-CXX)
|
||||
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-XL-C.cmake
vendored
Normal file
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-XL-C.cmake
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle")
|
||||
|
||||
# Enable shared library versioning.
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name")
|
||||
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-XL-CXX.cmake
vendored
Normal file
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-XL-CXX.cmake
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj")
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "-bundle")
|
||||
|
||||
# Enable shared library versioning.
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name")
|
||||
128
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-icc.cmake
vendored
Normal file
128
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-icc.cmake
vendored
Normal file
@@ -0,0 +1,128 @@
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS "" )
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS "")
|
||||
|
||||
# Setup for Leopard Compatibility
|
||||
EXEC_PROGRAM(sw_vers ARGS -productVersion OUTPUT_VARIABLE _OSX_VERSION)
|
||||
# MESSAGE (STATUS "_OSX_VERSION: ${_OSX_VERSION}")
|
||||
IF ( _OSX_VERSION MATCHES "^10.4" )
|
||||
#IF(CMAKE_COMPILER_IS_GNUCC)
|
||||
SET (CMAKE_C_FLAGS_INIT "")
|
||||
SET (CMAKE_C_FLAGS_DEBUG_INIT "-gdwarf-2")
|
||||
SET (CMAKE_C_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
|
||||
SET (CMAKE_C_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||
SET (CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-O2 -gdwarf-2")
|
||||
SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
# ENDIF(CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
# IF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET (CMAKE_CXX_FLAGS_INIT "")
|
||||
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-gdwarf-2")
|
||||
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-Os -DNDEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O3 -DNDEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2 -gdwarf-2")
|
||||
SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
||||
# ENDIF(CMAKE_COMPILER_IS_GNUCXX)
|
||||
ENDIF ( _OSX_VERSION MATCHES "^10.4" )
|
||||
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX "lib")
|
||||
SET(CMAKE_SHARED_MODULE_SUFFIX ".so")
|
||||
SET(CMAKE_MODULE_EXISTS 1)
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
SET(CMAKE_C_LINK_FLAGS "-Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_PLATFORM_HAS_INSTALLNAME 1)
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
|
||||
|
||||
|
||||
# setup for universal binaries if sysroot exists
|
||||
IF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
|
||||
# set the sysroot to be used if CMAKE_OSX_ARCHITECTURES
|
||||
# has more than one value
|
||||
SET(CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk CACHE STRING
|
||||
"isysroot used for universal binary support")
|
||||
# set _CMAKE_OSX_MACHINE to umame -m
|
||||
EXEC_PROGRAM(uname ARGS -m OUTPUT_VARIABLE _CMAKE_OSX_MACHINE)
|
||||
|
||||
# check for environment variable CMAKE_OSX_ARCHITECTURES
|
||||
# if it is set.
|
||||
IF(NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
|
||||
SET(_CMAKE_OSX_MACHINE "$ENV{CMAKE_OSX_ARCHITECTURES}")
|
||||
ENDIF(NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
|
||||
# now put _CMAKE_OSX_MACHINE into the cache
|
||||
SET(CMAKE_OSX_ARCHITECTURES ${_CMAKE_OSX_MACHINE}
|
||||
CACHE STRING "Build architectures for OSX")
|
||||
ENDIF(EXISTS /Developer/SDKs/MacOSX10.4u.sdk)
|
||||
|
||||
|
||||
IF("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$")
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
|
||||
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress")
|
||||
ENDIF("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$")
|
||||
|
||||
IF(NOT XCODE)
|
||||
# Enable shared library versioning. This flag is not actually referenced
|
||||
# but the fact that the setting exists will cause the generators to support
|
||||
# soname computation.
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-install_name")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-install_name")
|
||||
ENDIF(NOT XCODE)
|
||||
|
||||
# Xcode does not support -isystem yet.
|
||||
IF(XCODE)
|
||||
SET(CMAKE_INCLUDE_SYSTEM_FLAG_C)
|
||||
SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
|
||||
ENDIF(XCODE)
|
||||
|
||||
SET(CMAKE_MacOSX_Content_COMPILE_OBJECT "\"${CMAKE_COMMAND}\" -E copy_if_different <SOURCE> <OBJECT>")
|
||||
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
SET(CMAKE_Fortran_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_Fortran_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_CXX_CREATE_SHARED_MODULE
|
||||
"<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_C_CREATE_SHARED_MODULE
|
||||
"<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_Fortran_CREATE_SHARED_MODULE
|
||||
"<CMAKE_Fortran_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CREATE_Fortran_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
|
||||
# We can use $ENV{INTEL_LICENSE_FILE} to try and get at the installation location for ICC.
|
||||
# We also need to consider to use cce (which is the 64bit compiler) and not JUST the 32bit compiler.
|
||||
# I have no idea what the best way to do that would be.
|
||||
|
||||
|
||||
# default to searching for frameworks first
|
||||
SET(CMAKE_FIND_FRAMEWORK FIRST)
|
||||
# set up the default search directories for frameworks
|
||||
SET(CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/Network/Library/Frameworks
|
||||
/System/Library/Frameworks)
|
||||
|
||||
# default to searching for application bundles first
|
||||
SET(CMAKE_FIND_APPBUNDLE FIRST)
|
||||
# set up the default search directories for application bundles
|
||||
SET(CMAKE_SYSTEM_APPBUNDLE_PATH
|
||||
~/Applications
|
||||
/Applications
|
||||
/Developer/Applications)
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
SET(CMAKE_SYSTEM_INCLUDE_PATH ${CMAKE_SYSTEM_INCLUDE_PATH} /sw/include)
|
||||
SET(CMAKE_SYSTEM_LIBRARY_PATH ${CMAKE_SYSTEM_LIBRARY_PATH} /sw/lib)
|
||||
|
||||
3
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-icpc.cmake
vendored
Normal file
3
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin-icpc.cmake
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
GET_FILENAME_COMPONENT(CURRENT_SOURCE_PARENT ${CMAKE_CURRENT_LIST_FILE} PATH)
|
||||
#MESSAGE (STATUS "CURRENT_SOURCE_PARENT: ${CURRENT_SOURCE_PARENT}")
|
||||
INCLUDE ( ${CURRENT_SOURCE_PARENT}/Darwin-icc.cmake)
|
||||
242
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin.cmake
vendored
Normal file
242
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Darwin.cmake
vendored
Normal file
@@ -0,0 +1,242 @@
|
||||
SET(APPLE 1)
|
||||
|
||||
# Darwin versions:
|
||||
# 6.x == Mac OSX 10.2 (Jaguar)
|
||||
# 7.x == Mac OSX 10.3 (Panther)
|
||||
# 8.x == Mac OSX 10.4 (Tiger)
|
||||
# 9.x == Mac OSX 10.5 (Leopard)
|
||||
# 10.x == Mac OSX 10.6 (Snow Leopard)
|
||||
STRING(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\1" DARWIN_MAJOR_VERSION "${CMAKE_SYSTEM_VERSION}")
|
||||
STRING(REGEX REPLACE "^([0-9]+)\\.([0-9]+).*$" "\\2" DARWIN_MINOR_VERSION "${CMAKE_SYSTEM_VERSION}")
|
||||
|
||||
# Do not use the "-Wl,-search_paths_first" flag with the OSX 10.2 compiler.
|
||||
# Done this way because it is too early to do a TRY_COMPILE.
|
||||
IF(NOT DEFINED HAVE_FLAG_SEARCH_PATHS_FIRST)
|
||||
SET(HAVE_FLAG_SEARCH_PATHS_FIRST 0)
|
||||
IF("${DARWIN_MAJOR_VERSION}" GREATER 6)
|
||||
SET(HAVE_FLAG_SEARCH_PATHS_FIRST 1)
|
||||
ENDIF("${DARWIN_MAJOR_VERSION}" GREATER 6)
|
||||
ENDIF(NOT DEFINED HAVE_FLAG_SEARCH_PATHS_FIRST)
|
||||
# More desirable, but does not work:
|
||||
#INCLUDE(CheckCXXCompilerFlag)
|
||||
#CHECK_CXX_COMPILER_FLAG("-Wl,-search_paths_first" HAVE_FLAG_SEARCH_PATHS_FIRST)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "lib")
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
|
||||
SET(CMAKE_SHARED_MODULE_PREFIX "lib")
|
||||
SET(CMAKE_SHARED_MODULE_SUFFIX ".so")
|
||||
SET(CMAKE_MODULE_EXISTS 1)
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
|
||||
SET(CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
|
||||
SET(CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ")
|
||||
SET(CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}")
|
||||
SET(CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}")
|
||||
|
||||
SET(CMAKE_C_LINK_FLAGS "-Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_CXX_LINK_FLAGS "-Wl,-headerpad_max_install_names")
|
||||
|
||||
IF(HAVE_FLAG_SEARCH_PATHS_FIRST)
|
||||
SET(CMAKE_C_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_C_LINK_FLAGS}")
|
||||
SET(CMAKE_CXX_LINK_FLAGS "-Wl,-search_paths_first ${CMAKE_CXX_LINK_FLAGS}")
|
||||
ENDIF(HAVE_FLAG_SEARCH_PATHS_FIRST)
|
||||
|
||||
SET(CMAKE_PLATFORM_HAS_INSTALLNAME 1)
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-dynamiclib -Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle -Wl,-headerpad_max_install_names")
|
||||
SET(CMAKE_SHARED_MODULE_LOADER_C_FLAG "-Wl,-bundle_loader,")
|
||||
SET(CMAKE_SHARED_MODULE_LOADER_CXX_FLAG "-Wl,-bundle_loader,")
|
||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".dylib" ".so" ".a")
|
||||
|
||||
# hack: if a new cmake (which uses CMAKE_INSTALL_NAME_TOOL) runs on an old build tree
|
||||
# (where install_name_tool was hardcoded) and where CMAKE_INSTALL_NAME_TOOL isn't in the cache
|
||||
# and still cmake didn't fail in CMakeFindBinUtils.cmake (because it isn't rerun)
|
||||
# hardcode CMAKE_INSTALL_NAME_TOOL here to install_name_tool, so it behaves as it did before, Alex
|
||||
IF(NOT DEFINED CMAKE_INSTALL_NAME_TOOL)
|
||||
FIND_PROGRAM(CMAKE_INSTALL_NAME_TOOL install_name_tool)
|
||||
ENDIF(NOT DEFINED CMAKE_INSTALL_NAME_TOOL)
|
||||
|
||||
# Set the assumed (Pre 10.5 or Default) location of the developer tools
|
||||
SET(OSX_DEVELOPER_ROOT "/Developer")
|
||||
|
||||
# Find installed SDKs
|
||||
FILE(GLOB _CMAKE_OSX_SDKS "${OSX_DEVELOPER_ROOT}/SDKs/*")
|
||||
|
||||
# If nothing is found there, then try locating the dev tools based on the xcode-select tool
|
||||
# (available in Xcode >= 3.0 installations)
|
||||
IF(NOT _CMAKE_OSX_SDKS)
|
||||
FIND_PROGRAM(CMAKE_XCODE_SELECT xcode-select)
|
||||
IF(CMAKE_XCODE_SELECT)
|
||||
EXECUTE_PROCESS(COMMAND ${CMAKE_XCODE_SELECT} "-print-path"
|
||||
OUTPUT_VARIABLE OSX_DEVELOPER_ROOT
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
FILE(GLOB _CMAKE_OSX_SDKS "${OSX_DEVELOPER_ROOT}/SDKs/*")
|
||||
ENDIF(CMAKE_XCODE_SELECT)
|
||||
ENDIF(NOT _CMAKE_OSX_SDKS)
|
||||
|
||||
EXECUTE_PROCESS(COMMAND sw_vers -productVersion
|
||||
OUTPUT_VARIABLE CURRENT_OSX_VERSION
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# _CURRENT_OSX_VERSION - as a two-component string: 10.5, 10.6, ...
|
||||
#
|
||||
STRING(REGEX REPLACE "^([0-9]+\\.[0-9]+).*$" "\\1"
|
||||
_CURRENT_OSX_VERSION "${CURRENT_OSX_VERSION}")
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# CMAKE_OSX_DEPLOYMENT_TARGET
|
||||
|
||||
# Set cache variable - end user may change this during ccmake or cmake-gui configure.
|
||||
IF(_CURRENT_OSX_VERSION VERSION_GREATER 10.3)
|
||||
SET(CMAKE_OSX_DEPLOYMENT_TARGET "$ENV{MACOSX_DEPLOYMENT_TARGET}" CACHE STRING
|
||||
"Minimum OS X version to target for deployment (at runtime); newer APIs weak linked. Set to empty string for default value.")
|
||||
ENDIF(_CURRENT_OSX_VERSION VERSION_GREATER 10.3)
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
# CMAKE_OSX_SYSROOT
|
||||
|
||||
# Environment variable set by the user overrides our default.
|
||||
# Use the same environment variable that Xcode uses.
|
||||
SET(ENV_SDKROOT "$ENV{SDKROOT}")
|
||||
|
||||
# Set CMAKE_OSX_SYSROOT_DEFAULT based on _CURRENT_OSX_VERSION,
|
||||
# accounting for the known specially named SDKs.
|
||||
SET(CMAKE_OSX_SYSROOT_DEFAULT
|
||||
"${OSX_DEVELOPER_ROOT}/SDKs/MacOSX${_CURRENT_OSX_VERSION}.sdk")
|
||||
|
||||
IF(_CURRENT_OSX_VERSION STREQUAL "10.4")
|
||||
SET(CMAKE_OSX_SYSROOT_DEFAULT
|
||||
"${OSX_DEVELOPER_ROOT}/SDKs/MacOSX10.4u.sdk")
|
||||
ENDIF(_CURRENT_OSX_VERSION STREQUAL "10.4")
|
||||
|
||||
IF(_CURRENT_OSX_VERSION STREQUAL "10.3")
|
||||
SET(CMAKE_OSX_SYSROOT_DEFAULT
|
||||
"${OSX_DEVELOPER_ROOT}/SDKs/MacOSX10.3.9.sdk")
|
||||
ENDIF(_CURRENT_OSX_VERSION STREQUAL "10.3")
|
||||
|
||||
# Use environment or default as initial cache value:
|
||||
IF(NOT ENV_SDKROOT STREQUAL "")
|
||||
SET(CMAKE_OSX_SYSROOT_VALUE ${ENV_SDKROOT})
|
||||
ELSE(NOT ENV_SDKROOT STREQUAL "")
|
||||
SET(CMAKE_OSX_SYSROOT_VALUE ${CMAKE_OSX_SYSROOT_DEFAULT})
|
||||
ENDIF(NOT ENV_SDKROOT STREQUAL "")
|
||||
|
||||
# Set cache variable - end user may change this during ccmake or cmake-gui configure.
|
||||
SET(CMAKE_OSX_SYSROOT ${CMAKE_OSX_SYSROOT_VALUE} CACHE PATH
|
||||
"The product will be built against the headers and libraries located inside the indicated SDK.")
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
function(SanityCheckSDKAndDeployTarget _sdk_path _deploy)
|
||||
if(_deploy STREQUAL "")
|
||||
return()
|
||||
endif()
|
||||
|
||||
if(_sdk_path STREQUAL "")
|
||||
message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET='${_deploy}' but CMAKE_OSX_SYSROOT is empty... - either set CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to empty")
|
||||
endif()
|
||||
|
||||
string(REGEX REPLACE "(.*MacOSX*)(....)(.*\\.sdk)" "\\2" SDK "${_sdk_path}")
|
||||
if(_deploy GREATER "${SDK}")
|
||||
message(FATAL_ERROR "CMAKE_OSX_DEPLOYMENT_TARGET (${_deploy}) is greater than CMAKE_OSX_SYSROOT SDK (${_sdk_path}). Please set CMAKE_OSX_DEPLOYMENT_TARGET to ${SDK} or lower")
|
||||
endif()
|
||||
endfunction(SanityCheckSDKAndDeployTarget)
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
# Make sure the combination of SDK and Deployment Target are allowed
|
||||
SanityCheckSDKAndDeployTarget("${CMAKE_OSX_SYSROOT}" "${CMAKE_OSX_DEPLOYMENT_TARGET}")
|
||||
|
||||
# set _CMAKE_OSX_MACHINE to uname -m
|
||||
EXECUTE_PROCESS(COMMAND uname -m
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
OUTPUT_VARIABLE _CMAKE_OSX_MACHINE)
|
||||
|
||||
# check for Power PC and change to ppc
|
||||
IF(_CMAKE_OSX_MACHINE MATCHES "Power")
|
||||
SET(_CMAKE_OSX_MACHINE ppc)
|
||||
ENDIF(_CMAKE_OSX_MACHINE MATCHES "Power")
|
||||
|
||||
# check for environment variable CMAKE_OSX_ARCHITECTURES
|
||||
# if it is set.
|
||||
IF(NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
|
||||
SET(CMAKE_OSX_ARCHITECTURES_VALUE "$ENV{CMAKE_OSX_ARCHITECTURES}")
|
||||
ELSE(NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
|
||||
SET(CMAKE_OSX_ARCHITECTURES_VALUE "")
|
||||
ENDIF(NOT "$ENV{CMAKE_OSX_ARCHITECTURES}" STREQUAL "")
|
||||
|
||||
# now put _CMAKE_OSX_MACHINE into the cache
|
||||
SET(CMAKE_OSX_ARCHITECTURES ${CMAKE_OSX_ARCHITECTURES_VALUE} CACHE STRING
|
||||
"Build architectures for OSX")
|
||||
|
||||
|
||||
IF("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$")
|
||||
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS
|
||||
"${CMAKE_SHARED_MODULE_CREATE_C_FLAGS} -flat_namespace -undefined suppress")
|
||||
ENDIF("${CMAKE_BACKWARDS_COMPATIBILITY}" MATCHES "^1\\.[0-6]$")
|
||||
|
||||
IF(NOT XCODE)
|
||||
# Enable shared library versioning. This flag is not actually referenced
|
||||
# but the fact that the setting exists will cause the generators to support
|
||||
# soname computation.
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-install_name")
|
||||
ENDIF(NOT XCODE)
|
||||
|
||||
# Xcode does not support -isystem yet.
|
||||
IF(XCODE)
|
||||
SET(CMAKE_INCLUDE_SYSTEM_FLAG_C)
|
||||
SET(CMAKE_INCLUDE_SYSTEM_FLAG_CXX)
|
||||
ENDIF(XCODE)
|
||||
|
||||
# Need to list dependent shared libraries on link line. When building
|
||||
# with -isysroot (for universal binaries), the linker always looks for
|
||||
# dependent libraries under the sysroot. Listing them on the link
|
||||
# line works around the problem.
|
||||
SET(CMAKE_LINK_DEPENDENT_LIBRARY_FILES 1)
|
||||
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY_FORBIDDEN_FLAGS -w)
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
SET(CMAKE_Fortran_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_Fortran_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_CXX_CREATE_SHARED_MODULE
|
||||
"<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_C_CREATE_SHARED_MODULE
|
||||
"<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_Fortran_CREATE_SHARED_MODULE
|
||||
"<CMAKE_Fortran_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_MODULE_CREATE_Fortran_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_C_CREATE_MACOSX_FRAMEWORK
|
||||
"<CMAKE_C_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
SET(CMAKE_CXX_CREATE_MACOSX_FRAMEWORK
|
||||
"<CMAKE_CXX_COMPILER> <LANGUAGE_COMPILE_FLAGS> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> -install_name <TARGET_INSTALLNAME_DIR><TARGET_SONAME> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
|
||||
|
||||
# default to searching for frameworks first
|
||||
SET(CMAKE_FIND_FRAMEWORK FIRST)
|
||||
# set up the default search directories for frameworks
|
||||
SET(CMAKE_SYSTEM_FRAMEWORK_PATH
|
||||
~/Library/Frameworks
|
||||
/Library/Frameworks
|
||||
/Network/Library/Frameworks
|
||||
/System/Library/Frameworks)
|
||||
|
||||
# default to searching for application bundles first
|
||||
SET(CMAKE_FIND_APPBUNDLE FIRST)
|
||||
# set up the default search directories for application bundles
|
||||
SET(CMAKE_SYSTEM_APPBUNDLE_PATH
|
||||
~/Applications
|
||||
/Applications
|
||||
/Developer/Applications)
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH
|
||||
/sw # Fink
|
||||
/opt/local # MacPorts
|
||||
)
|
||||
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/DragonFly.cmake
vendored
Normal file
5
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/DragonFly.cmake
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
# DragonFly BSD was forked from FreeBSD and is still very close to it
|
||||
# http://www.dragonflybsd.org
|
||||
# see http://archive.netbsd.se/?ml=dfbsd-users&a=2007-07&m=4678361
|
||||
|
||||
INCLUDE(Platform/FreeBSD)
|
||||
26
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/FreeBSD.cmake
vendored
Normal file
26
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/FreeBSD.cmake
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
IF(EXISTS /usr/include/dlfcn.h)
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC") # -pic
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared") # -shared
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") # +s, flag for exe link to use shared lib
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":") # : or empty
|
||||
SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
||||
SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
|
||||
ENDIF(EXISTS /usr/include/dlfcn.h)
|
||||
|
||||
# Shared libraries with no builtin soname may not be linked safely by
|
||||
# specifying the file path.
|
||||
SET(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 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)
|
||||
13
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/GNU.cmake
vendored
Normal file
13
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/GNU.cmake
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# GCC is the default compiler on GNU/Hurd.
|
||||
SET(CMAKE_DL_LIBS "dl")
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_RPATH_LINK_C_FLAG "-Wl,-rpath-link,")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
||||
SET(CMAKE_EXE_EXPORTS_C_FLAG "-Wl,--export-dynamic")
|
||||
|
||||
SET(CMAKE_LIBRARY_ARCHITECTURE_REGEX "[a-z0-9_]+(-[a-z0-9_]+)?-gnu[a-z0-9_]*")
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
7
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-ASM.cmake
vendored
Normal file
7
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-ASM.cmake
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
INCLUDE(Platform/Generic-ADSP-Common)
|
||||
|
||||
SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm)
|
||||
SET(CMAKE_ASM_OUTPUT_EXTENSION ".doj" )
|
||||
SET(CMAKE_ASM_COMPILE_OBJECT
|
||||
"<CMAKE_ASM_COMPILER> <FLAGS> -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -o <OBJECT> <SOURCE>")
|
||||
|
||||
20
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-C.cmake
vendored
Normal file
20
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-C.cmake
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
INCLUDE(Platform/Generic-ADSP-Common)
|
||||
|
||||
|
||||
SET(CMAKE_C_OUTPUT_EXTENSION ".doj")
|
||||
|
||||
SET(CMAKE_C_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_C_FLAGS_MINSIZEREL_INIT "")
|
||||
SET(CMAKE_C_FLAGS_RELEASE_INIT "")
|
||||
SET(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "")
|
||||
|
||||
SET(CMAKE_C_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_C_COMPILER> -build-lib -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -o <TARGET> <CMAKE_C_LINK_FLAGS> <OBJECTS>")
|
||||
|
||||
SET(CMAKE_C_LINK_EXECUTABLE
|
||||
"<CMAKE_C_COMPILER> <FLAGS> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY)
|
||||
SET(CMAKE_C_CREATE_MODULE_LIBRARY)
|
||||
|
||||
18
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-CXX.cmake
vendored
Normal file
18
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-CXX.cmake
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
INCLUDE(Platform/Generic-ADSP-Common)
|
||||
|
||||
SET(CMAKE_CXX_OUTPUT_EXTENSION ".doj")
|
||||
|
||||
SET(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
SET(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "")
|
||||
SET(CMAKE_CXX_FLAGS_RELEASE_INIT "")
|
||||
SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "")
|
||||
|
||||
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> -build-lib -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -o <TARGET> <CMAKE_CXX_LINK_FLAGS> <OBJECTS>")
|
||||
|
||||
SET(CMAKE_CXX_LINK_EXECUTABLE
|
||||
"<CMAKE_CXX_COMPILER> <FLAGS> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY)
|
||||
SET(CMAKE_CXX_CREATE_MODULE_LIBRARY)
|
||||
|
||||
120
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-Common.cmake
vendored
Normal file
120
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-ADSP-Common.cmake
vendored
Normal file
@@ -0,0 +1,120 @@
|
||||
# support for the Analog Devices toolchain for their DSPs
|
||||
# Raphael Cotty" <raphael.cotty (AT) googlemail.com>
|
||||
#
|
||||
# it supports three architectures:
|
||||
# Blackfin
|
||||
# TS (TigerShark)
|
||||
# 21k (Sharc 21xxx)
|
||||
|
||||
IF(NOT ADSP)
|
||||
|
||||
SET(ADSP TRUE)
|
||||
|
||||
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".dlb")
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX "")
|
||||
SET(CMAKE_EXECUTABLE_SUFFIX ".dxe")
|
||||
|
||||
# if ADSP_PROCESSOR has not been set, but CMAKE_SYSTEM_PROCESSOR has,
|
||||
# assume that this is the processor name to use for the compiler
|
||||
IF(CMAKE_SYSTEM_PROCESSOR AND NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_PROCESSOR ${CMAKE_SYSTEM_PROCESSOR})
|
||||
ENDIF(CMAKE_SYSTEM_PROCESSOR AND NOT ADSP_PROCESSOR)
|
||||
|
||||
# if ADSP_PROCESSOR_SILICIUM_REVISION has not been set, use "none"
|
||||
IF(NOT ADSP_PROCESSOR_SILICIUM_REVISION)
|
||||
SET(ADSP_PROCESSOR_SILICIUM_REVISION "none")
|
||||
ENDIF(NOT ADSP_PROCESSOR_SILICIUM_REVISION)
|
||||
|
||||
# this file is included from the C and CXX files, so handle both here
|
||||
|
||||
GET_FILENAME_COMPONENT(_ADSP_DIR "${CMAKE_C_COMPILER}" PATH)
|
||||
IF(NOT _ADSP_DIR)
|
||||
GET_FILENAME_COMPONENT(_ADSP_DIR "${CMAKE_CXX_COMPILER}" PATH)
|
||||
ENDIF(NOT _ADSP_DIR)
|
||||
IF(NOT _ADSP_DIR)
|
||||
GET_FILENAME_COMPONENT(_ADSP_DIR "${CMAKE_ASM_COMPILER}" PATH)
|
||||
ENDIF(NOT _ADSP_DIR)
|
||||
|
||||
# detect architecture
|
||||
|
||||
IF(CMAKE_C_COMPILER MATCHES ccblkfn OR CMAKE_CXX_COMPILER MATCHES ccblkfn OR CMAKE_ASM_COMPILER MATCHES easmBLKFN)
|
||||
IF(NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_PROCESSOR "ADSP-BF561")
|
||||
ENDIF(NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_BLACKFIN TRUE)
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/Blackfin")
|
||||
ENDIF(CMAKE_C_COMPILER MATCHES ccblkfn OR CMAKE_CXX_COMPILER MATCHES ccblkfn OR CMAKE_ASM_COMPILER MATCHES easmBLKFN)
|
||||
|
||||
IF(CMAKE_C_COMPILER MATCHES ccts OR CMAKE_CXX_COMPILER MATCHES ccts OR CMAKE_ASM_COMPILER MATCHES easmTS)
|
||||
IF(NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_PROCESSOR "ADSP-TS101")
|
||||
ENDIF(NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_TS TRUE)
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/TS")
|
||||
ENDIF(CMAKE_C_COMPILER MATCHES ccts OR CMAKE_CXX_COMPILER MATCHES ccts OR CMAKE_ASM_COMPILER MATCHES easmTS)
|
||||
|
||||
IF(CMAKE_C_COMPILER MATCHES cc21k OR CMAKE_CXX_COMPILER MATCHES cc21k OR CMAKE_ASM_COMPILER MATCHES easm21k)
|
||||
IF(NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_PROCESSOR "ADSP-21060")
|
||||
ENDIF(NOT ADSP_PROCESSOR)
|
||||
SET(ADSP_21K TRUE)
|
||||
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/21k") # default if nothing matches
|
||||
IF (ADSP_PROCESSOR MATCHES "210..$")
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/21k")
|
||||
ENDIF(ADSP_PROCESSOR MATCHES "210..$")
|
||||
|
||||
IF (ADSP_PROCESSOR MATCHES "211..$")
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/211k")
|
||||
ENDIF(ADSP_PROCESSOR MATCHES "211..$")
|
||||
|
||||
IF (ADSP_PROCESSOR MATCHES "212..$")
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/212k")
|
||||
ENDIF(ADSP_PROCESSOR MATCHES "212..$")
|
||||
|
||||
IF (ADSP_PROCESSOR MATCHES "213..$")
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/213k")
|
||||
ENDIF(ADSP_PROCESSOR MATCHES "213..$")
|
||||
|
||||
SET(_ADSP_FAMILY_DIR "${_ADSP_DIR}/21k")
|
||||
ENDIF(CMAKE_C_COMPILER MATCHES cc21k OR CMAKE_CXX_COMPILER MATCHES cc21k OR CMAKE_ASM_COMPILER MATCHES easm21k)
|
||||
|
||||
|
||||
LINK_DIRECTORIES("${_ADSP_FAMILY_DIR}/lib")
|
||||
|
||||
# vdk support
|
||||
FIND_PROGRAM( ADSP_VDKGEN_EXECUTABLE vdkgen "${_ADSP_FAMILY_DIR}/vdk" )
|
||||
|
||||
MACRO(ADSP_GENERATE_VDK VDK_GENERATED_HEADER VDK_GENERATED_SOURCE VDK_KERNEL_SUPPORT_FILE)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${VDK_GENERATED_HEADER} ${VDK_GENERATED_SOURCE}
|
||||
COMMAND ${ADSP_VDKGEN_EXECUTABLE} ${VDK_KERNEL_SUPPORT_FILE} -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -MM
|
||||
DEPENDS ${VDK_KERNEL_SUPPORT_FILE}
|
||||
)
|
||||
ENDMACRO(ADSP_GENERATE_VDK VDK_GENERATED_HEADER VDK_GENERATED_SOURCE VDK_KERNEL_SUPPORT_FILE)
|
||||
|
||||
# loader support
|
||||
FIND_PROGRAM( ADSP_ELFLOADER_EXECUTABLE elfloader "${_ADSP_FAMILY_DIR}" )
|
||||
|
||||
# BOOT_MODE: prom, flash, spi, spislave, UART, TWI, FIFO
|
||||
# FORMAT: hex, ASCII, binary, include
|
||||
# WIDTH: 8, 16
|
||||
MACRO(ADSP_CREATE_LOADER_FILE TARGET_NAME BOOT_MODE FORMAT WIDTH)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET ${TARGET_NAME}
|
||||
POST_BUILD
|
||||
COMMAND ${ADSP_ELFLOADER_EXECUTABLE} ${EXECUTABLE_OUTPUT_PATH}/${TARGET_NAME}.dxe -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -b ${BOOT_MODE} -f ${FORMAT} -width ${WIDTH} -o ${EXECUTABLE_OUTPUT_PATH}/${TARGET_NAME}.ldr
|
||||
COMMENT "Building the loader file"
|
||||
)
|
||||
ENDMACRO(ADSP_CREATE_LOADER_FILE TARGET_NAME BOOT_MODE FORMAT WIDTH)
|
||||
|
||||
MACRO(ADSP_CREATE_LOADER_FILE_INIT TARGET_NAME BOOT_MODE FORMAT WIDTH INITIALIZATION_FILE)
|
||||
ADD_CUSTOM_COMMAND(
|
||||
TARGET ${TARGET_NAME}
|
||||
POST_BUILD
|
||||
COMMAND ${ADSP_ELFLOADER_EXECUTABLE} ${EXECUTABLE_OUTPUT_PATH}/${TARGET_NAME}.dxe -proc ${ADSP_PROCESSOR} -si-revision ${ADSP_PROCESSOR_SILICIUM_REVISION} -b ${BOOT_MODE} -f ${FORMAT} -width ${WIDTH} -o ${EXECUTABLE_OUTPUT_PATH}/${TARGET_NAME}.ldr -init ${INITIALIZATION_FILE}
|
||||
COMMENT "Building the loader file"
|
||||
)
|
||||
ENDMACRO(ADSP_CREATE_LOADER_FILE_INIT TARGET_NAME BOOT_MODE FORMAT WIDTH INITIALIZATION_FILE)
|
||||
|
||||
ENDIF(NOT ADSP)
|
||||
54
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-SDCC-C.cmake
vendored
Normal file
54
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic-SDCC-C.cmake
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
|
||||
# This file implements basic support for sdcc (http://sdcc.sourceforge.net/)
|
||||
# a free C compiler for 8 and 16 bit microcontrollers.
|
||||
# To use it either a toolchain file is required or cmake has to be run like this:
|
||||
# cmake -DCMAKE_C_COMPILER=sdcc -DCMAKE_SYSTEM_NAME=Generic <dir...>
|
||||
# Since sdcc doesn't support C++, C++ support should be disabled in the
|
||||
# CMakeLists.txt using the PROJECT() command:
|
||||
# PROJECT(my_project C)
|
||||
|
||||
SET(CMAKE_STATIC_LIBRARY_PREFIX "")
|
||||
SET(CMAKE_STATIC_LIBRARY_SUFFIX ".lib")
|
||||
SET(CMAKE_SHARED_LIBRARY_PREFIX "") # lib
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".lib") # .so
|
||||
SET(CMAKE_IMPORT_LIBRARY_PREFIX )
|
||||
SET(CMAKE_IMPORT_LIBRARY_SUFFIX )
|
||||
SET(CMAKE_EXECUTABLE_SUFFIX ".ihx") # intel hex file
|
||||
SET(CMAKE_LINK_LIBRARY_SUFFIX ".lib")
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
|
||||
SET(CMAKE_C_OUTPUT_EXTENSION ".rel")
|
||||
|
||||
# find sdcclib as CMAKE_AR
|
||||
# since cmake may already have searched for "ar", sdcclib has to
|
||||
# be searched with a different variable name (SDCCLIB_EXECUTABLE)
|
||||
# and must then be forced into the cache
|
||||
GET_FILENAME_COMPONENT(SDCC_LOCATION "${CMAKE_C_COMPILER}" PATH)
|
||||
FIND_PROGRAM(SDCCLIB_EXECUTABLE sdcclib PATHS "${SDCC_LOCATION}" NO_DEFAULT_PATH)
|
||||
FIND_PROGRAM(SDCCLIB_EXECUTABLE sdcclib)
|
||||
SET(CMAKE_AR "${SDCCLIB_EXECUTABLE}" CACHE FILEPATH "The sdcc librarian" FORCE)
|
||||
|
||||
# CMAKE_C_FLAGS_INIT and CMAKE_EXE_LINKER_FLAGS_INIT should be set in a CMAKE_SYSTEM_PROCESSOR file
|
||||
IF(NOT DEFINED CMAKE_C_FLAGS_INIT)
|
||||
SET(CMAKE_C_FLAGS_INIT "-mmcs51 --model-small")
|
||||
ENDIF(NOT DEFINED CMAKE_C_FLAGS_INIT)
|
||||
|
||||
IF(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_INIT)
|
||||
SET (CMAKE_EXE_LINKER_FLAGS_INIT --model-small)
|
||||
ENDIF(NOT DEFINED CMAKE_EXE_LINKER_FLAGS_INIT)
|
||||
|
||||
# compile a C file into an object file
|
||||
SET(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||
|
||||
# link object files to an executable
|
||||
SET(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> <FLAGS> <OBJECTS> --out-fmt-ihx -o <TARGET> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>")
|
||||
|
||||
# needs sdcc 2.7.0 + sddclib from cvs
|
||||
SET(CMAKE_C_CREATE_STATIC_LIBRARY
|
||||
"\"${CMAKE_COMMAND}\" -E remove <TARGET>"
|
||||
"<CMAKE_AR> -a <TARGET> <LINK_FLAGS> <OBJECTS> ")
|
||||
|
||||
# not supported by sdcc
|
||||
SET(CMAKE_C_CREATE_SHARED_LIBRARY "")
|
||||
SET(CMAKE_C_CREATE_MODULE_LIBRARY "")
|
||||
|
||||
17
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic.cmake
vendored
Normal file
17
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Generic.cmake
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# This is a platform definition file for platforms without
|
||||
# operating system, typically embedded platforms.
|
||||
# It is used when CMAKE_SYSTEM_NAME is set to "Generic"
|
||||
#
|
||||
# It is intentionally empty, since nothing is known
|
||||
# about the platform. So everything has to be specified
|
||||
# in the system/compiler files ${CMAKE_SYSTEM_NAME}-<compiler_basename>.cmake
|
||||
# and/or ${CMAKE_SYSTEM_NAME}-<compiler_basename>-${CMAKE_SYSTEM_PROCESSOR}.cmake
|
||||
|
||||
# (embedded) targets without operating system usually don't support shared libraries
|
||||
SET_PROPERTY(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
|
||||
|
||||
# To help the find_xxx() commands, set at least the following so CMAKE_FIND_ROOT_PATH
|
||||
# works at least for some simple cases:
|
||||
SET(CMAKE_SYSTEM_INCLUDE_PATH /include )
|
||||
SET(CMAKE_SYSTEM_LIBRARY_PATH /lib )
|
||||
SET(CMAKE_SYSTEM_PROGRAM_PATH /bin )
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/HP-UX-GNU)
|
||||
__hpux_compiler_gnu(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/HP-UX-GNU)
|
||||
__hpux_compiler_gnu(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/HP-UX-GNU)
|
||||
__hpux_compiler_gnu(Fortran)
|
||||
27
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU.cmake
vendored
Normal file
27
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-GNU.cmake
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__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()
|
||||
6
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-ASM.cmake
vendored
Normal file
6
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-ASM.cmake
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
include(Platform/HP-UX-HP)
|
||||
__hpux_compiler_hp(ASM)
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_ASM_FLAGS "-E -b +nodefaultrpath -L/usr/lib")
|
||||
|
||||
set(CMAKE_ASM_CREATE_SHARED_LIBRARY "ld <CMAKE_SHARED_LIBRARY_CREATE_ASM_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_ASM_FLAG><TARGET_SONAME> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
11
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-C.cmake
vendored
Normal file
11
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-C.cmake
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
include(Platform/HP-UX-HP)
|
||||
__hpux_compiler_hp(C)
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-E -b +nodefaultrpath -L/usr/lib")
|
||||
|
||||
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>")
|
||||
set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> -Aa -Ae <FLAGS> -o <OBJECT> -c <SOURCE>")
|
||||
|
||||
# use ld directly to create shared libraries for hp cc
|
||||
set(CMAKE_C_CREATE_SHARED_LIBRARY "ld <CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_C_FLAG><TARGET_SONAME> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-CXX.cmake
vendored
Normal file
16
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-CXX.cmake
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
include(Platform/HP-UX-HP)
|
||||
__hpux_compiler_hp(CXX)
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "+Z -Wl,-E,+nodefaultrpath -b -L/usr/lib")
|
||||
|
||||
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>"
|
||||
"mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
|
||||
"rm -f `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.o"
|
||||
)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
set(CMAKE_CXX_FLAGS_MINSIZEREL_INIT "+O3 -DNDEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELEASE_INIT "+O2 -DNDEBUG")
|
||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-g")
|
||||
7
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-Fortran.cmake
vendored
Normal file
7
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
include(Platform/HP-UX-HP)
|
||||
__hpux_compiler_hp(Fortran)
|
||||
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-E -b -L/usr/lib")
|
||||
|
||||
set(CMAKE_Fortran_CREATE_SHARED_LIBRARY
|
||||
"ld <CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS> <CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG><TARGET_SONAME> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
34
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP.cmake
vendored
Normal file
34
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX-HP.cmake
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__HPUX_COMPILER_HP)
|
||||
return()
|
||||
endif()
|
||||
set(__HPUX_COMPILER_HP 1)
|
||||
set(_Wl_C "")
|
||||
set(_Wl_CXX "-Wl,")
|
||||
set(_Wl_Fortran "")
|
||||
set(_Wl_ASM "")
|
||||
|
||||
macro(__hpux_compiler_hp lang)
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "+Z")
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-Wl,+s,-E,+nodefaultrpath")
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG "${_Wl_${lang}}+b")
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_${lang}_FLAG_SEP ":")
|
||||
set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "${_Wl_${lang}}+h")
|
||||
set(CMAKE_EXECUTABLE_RUNTIME_${lang}_FLAG "-Wl,+b")
|
||||
|
||||
set(CMAKE_${lang}_FLAGS_INIT "")
|
||||
endmacro()
|
||||
50
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX.cmake
vendored
Normal file
50
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/HP-UX.cmake
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
SET(CMAKE_PLATFORM_REQUIRED_RUNTIME_PATH /usr/lib)
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_SUFFIX ".sl") # .so
|
||||
SET(CMAKE_DL_LIBS "dld")
|
||||
SET(CMAKE_FIND_LIBRARY_SUFFIXES ".sl" ".so" ".a")
|
||||
SET(CMAKE_EXTRA_SHARED_LIBRARY_SUFFIXES ".so")
|
||||
|
||||
# The HP linker needs to find transitive shared library dependencies
|
||||
# in the -L path. Therefore the runtime path must be added to the
|
||||
# link line with -L flags.
|
||||
SET(CMAKE_SHARED_LIBRARY_LINK_C_WITH_RUNTIME_PATH 1)
|
||||
SET(CMAKE_LINK_DEPENDENT_LIBRARY_DIRS 1)
|
||||
|
||||
# Shared libraries with no builtin soname may not be linked safely by
|
||||
# specifying the file path.
|
||||
SET(CMAKE_PLATFORM_USES_PATH_WHEN_NO_SONAME 1)
|
||||
|
||||
# set flags for gcc support
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
|
||||
# Look in both 32-bit and 64-bit implict link directories, but tell
|
||||
# CMake not to pass the paths to the linker. The linker will find the
|
||||
# library for the proper architecture. In the future we should detect
|
||||
# which path will be used by the linker. Since the pointer type size
|
||||
# CMAKE_SIZEOF_VOID_P is not set until after this file executes, we
|
||||
# would need to append to CMAKE_SYSTEM_LIBRARY_PATH at a later point
|
||||
# (after CMakeTest(LANG)Compiler.cmake runs for at least one language).
|
||||
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /usr/lib/hpux32)
|
||||
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /usr/lib/hpux64)
|
||||
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES
|
||||
/usr/lib/hpux32 /usr/lib/hpux64)
|
||||
|
||||
# Initialize C and CXX 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. Note that C modules and shared
|
||||
# libs are built using ld directly so we leave off the "-Wl," portion.
|
||||
FOREACH(type SHARED_LIBRARY SHARED_MODULE)
|
||||
SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-a archive")
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-a default")
|
||||
ENDFOREACH(type)
|
||||
FOREACH(type EXE)
|
||||
SET(CMAKE_${type}_LINK_STATIC_C_FLAGS "-Wl,-a,archive")
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_C_FLAGS "-Wl,-a,default")
|
||||
ENDFOREACH(type)
|
||||
FOREACH(type SHARED_LIBRARY SHARED_MODULE EXE)
|
||||
SET(CMAKE_${type}_LINK_STATIC_CXX_FLAGS "-Wl,-a,archive")
|
||||
SET(CMAKE_${type}_LINK_DYNAMIC_CXX_FLAGS "-Wl,-a,default")
|
||||
ENDFOREACH(type)
|
||||
|
||||
22
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Haiku.cmake
vendored
Normal file
22
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Haiku.cmake
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
SET(BEOS 1)
|
||||
|
||||
SET(CMAKE_DL_LIBS root be)
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "-fPIC")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-nostart")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP ":")
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
||||
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
LIST(APPEND CMAKE_SYSTEM_PREFIX_PATH /boot/common)
|
||||
LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH /boot/common/include)
|
||||
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /boot/common/lib)
|
||||
LIST(APPEND CMAKE_SYSTEM_PROGRAM_PATH /boot/common/bin)
|
||||
LIST(APPEND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES /boot/common/lib)
|
||||
LIST(APPEND CMAKE_SYSTEM_INCLUDE_PATH /boot/develop/headers/3rdparty)
|
||||
LIST(APPEND CMAKE_SYSTEM_LIBRARY_PATH /boot/develop/lib/x86)
|
||||
|
||||
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
SET(CMAKE_INSTALL_PREFIX "/boot/common" CACHE PATH
|
||||
"Install path prefix, prepended onto install directories." FORCE)
|
||||
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
||||
45
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/IRIX.cmake
vendored
Normal file
45
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/IRIX.cmake
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -rdata_shared")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> -ar -o <TARGET> <OBJECTS>")
|
||||
SET (CMAKE_CXX_FLAGS_INIT "")
|
||||
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
||||
SET (CMAKE_C_FLAGS_INIT "")
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
# set flags for gcc support
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
SET (CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
SET (CMAKE_C_CREATE_ASSEMBLY_SOURCE
|
||||
"<CMAKE_C_COMPILER> <FLAGS> -S <SOURCE>"
|
||||
"mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
|
||||
)
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
SET (CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
||||
SET (CMAKE_CXX_CREATE_ASSEMBLY_SOURCE
|
||||
"<CMAKE_CXX_COMPILER> <FLAGS> -S <SOURCE>"
|
||||
"mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
|
||||
)
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
# 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)
|
||||
|
||||
# The IRIX linker needs to find transitive shared library dependencies
|
||||
# in the -L path.
|
||||
SET(CMAKE_LINK_DEPENDENT_LIBRARY_DIRS 1)
|
||||
73
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/IRIX64.cmake
vendored
Normal file
73
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/IRIX64.cmake
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
SET(CMAKE_DL_LIBS "")
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-shared -rdata_shared")
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "-Wl,-rpath,") # -rpath
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG_SEP "") # : or empty
|
||||
SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-soname,")
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
# Set default flags init.
|
||||
SET(CMAKE_C_FLAGS_INIT "")
|
||||
SET(CMAKE_CXX_FLAGS_INIT "")
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_INIT "")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_INIT "")
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS_INIT "")
|
||||
|
||||
# If no -o32, -n32, or -64 flag is given, set a reasonable default.
|
||||
IF("$ENV{CFLAGS} $ENV{CXXFLAGS} $ENV{LDFLAGS}" MATCHES "-([no]32|64)")
|
||||
ELSE("$ENV{CFLAGS} $ENV{CXXFLAGS} $ENV{LDFLAGS}" MATCHES "-([no]32|64)")
|
||||
# Check if this is a 64-bit CMake.
|
||||
IF(CMAKE_FILE_SELF MATCHES "^CMAKE_FILE_SELF$")
|
||||
EXEC_PROGRAM(file ARGS ${CMAKE_COMMAND} OUTPUT_VARIABLE CMAKE_FILE_SELF)
|
||||
SET(CMAKE_FILE_SELF "${CMAKE_FILE_SELF}" CACHE INTERNAL
|
||||
"Output of file command on ${CMAKE_COMMAND}.")
|
||||
ENDIF(CMAKE_FILE_SELF MATCHES "^CMAKE_FILE_SELF$")
|
||||
|
||||
# Set initial flags to match cmake executable.
|
||||
IF(CMAKE_FILE_SELF MATCHES " 64-bit ")
|
||||
SET(CMAKE_C_FLAGS_INIT "-64")
|
||||
SET(CMAKE_CXX_FLAGS_INIT "-64")
|
||||
SET(CMAKE_Fortran_FLAGS_INIT "-64")
|
||||
SET(CMAKE_EXE_LINKER_FLAGS_INIT "-64")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS_INIT "-64")
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS_INIT "-64")
|
||||
ENDIF(CMAKE_FILE_SELF MATCHES " 64-bit ")
|
||||
ENDIF("$ENV{CFLAGS} $ENV{CXXFLAGS} $ENV{LDFLAGS}" MATCHES "-([no]32|64)")
|
||||
|
||||
# Set remaining defaults.
|
||||
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> -ar -o <TARGET> <OBJECTS>")
|
||||
SET (CMAKE_CXX_FLAGS_DEBUG_INIT "-g")
|
||||
SET (CMAKE_CXX_FLAGS_MINSIZEREL_INIT "-O3 -DNDEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELEASE_INIT "-O2 -DNDEBUG")
|
||||
SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT "-O2")
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
INCLUDE(Platform/UnixPaths)
|
||||
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
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>"
|
||||
"mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
|
||||
)
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
|
||||
IF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
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>"
|
||||
"mv `basename \"<SOURCE>\" | sed 's/\\.[^./]*$$//'`.s <ASSEMBLY_SOURCE>"
|
||||
)
|
||||
ENDIF(NOT CMAKE_COMPILER_IS_GNUCXX)
|
||||
|
||||
# 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)
|
||||
|
||||
# The IRIX linker needs to find transitive shared library dependencies
|
||||
# in the -L path.
|
||||
SET(CMAKE_LINK_DEPENDENT_LIBRARY_DIRS 1)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Absoft-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Absoft-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
set(CMAKE_Fortran_VERBOSE_FLAG "-X -v") # Runs gcc under the hood.
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Clang-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Clang-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
INCLUDE(Platform/Linux-GNU-C)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Clang-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Clang-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
INCLUDE(Platform/Linux-GNU-CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
INCLUDE(Platform/Linux-GNU)
|
||||
__linux_compiler_gnu(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
INCLUDE(Platform/Linux-GNU)
|
||||
__linux_compiler_gnu(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
INCLUDE(Platform/Linux-GNU)
|
||||
__linux_compiler_gnu(Fortran)
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-GNU.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#=============================================================================
|
||||
# Copyright 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(__LINUX_COMPILER_GNU)
|
||||
return()
|
||||
endif()
|
||||
set(__LINUX_COMPILER_GNU 1)
|
||||
|
||||
macro(__linux_compiler_gnu lang)
|
||||
# We pass this for historical reasons. Projects may have
|
||||
# executables that use dlopen but do not set ENABLE_EXPORTS.
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic")
|
||||
endmacro()
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
INCLUDE(Platform/Linux-Intel)
|
||||
__linux_compiler_intel(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
INCLUDE(Platform/Linux-Intel)
|
||||
__linux_compiler_intel(CXX)
|
||||
4
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel-Fortran.cmake
vendored
Normal file
4
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
INCLUDE(Platform/Linux-Intel)
|
||||
__linux_compiler_intel(Fortran)
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "${CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS} -i_dynamic -nofor_main")
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-i_dynamic")
|
||||
48
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel.cmake
vendored
Normal file
48
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-Intel.cmake
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__LINUX_COMPILER_INTEL)
|
||||
return()
|
||||
endif()
|
||||
set(__LINUX_COMPILER_INTEL 1)
|
||||
|
||||
if(NOT XIAR)
|
||||
set(_intel_xiar_hints)
|
||||
foreach(lang C CXX Fortran)
|
||||
if(IS_ABSOLUTE "${CMAKE_${lang}_COMPILER}")
|
||||
get_filename_component(_hint "${CMAKE_${lang}_COMPILER}" PATH)
|
||||
list(APPEND _intel_xiar_hints ${_hint})
|
||||
endif()
|
||||
endforeach()
|
||||
find_program(XIAR NAMES xiar HINTS ${_intel_xiar_hints})
|
||||
mark_as_advanced(XIAR)
|
||||
endif(NOT XIAR)
|
||||
|
||||
macro(__linux_compiler_intel lang)
|
||||
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared")
|
||||
|
||||
# We pass this for historical reasons. Projects may have
|
||||
# executables that use dlopen but do not set ENABLE_EXPORTS.
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic")
|
||||
|
||||
if(XIAR)
|
||||
# INTERPROCEDURAL_OPTIMIZATION
|
||||
set(CMAKE_${lang}_COMPILE_OPTIONS_IPO -ipo)
|
||||
set(CMAKE_${lang}_CREATE_STATIC_LIBRARY_IPO
|
||||
"${XIAR} cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
||||
"${XIAR} -s <TARGET> ")
|
||||
endif()
|
||||
endmacro()
|
||||
10
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-NAG-Fortran.cmake
vendored
Normal file
10
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-NAG-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
set(CMAKE_Fortran_VERBOSE_FLAG "-Wl,-v") # Runs gcc under the hood.
|
||||
|
||||
# Need one "-Wl," level to send flag through to gcc.
|
||||
# Use "-Xlinker" to get through gcc to real linker.
|
||||
set(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-Wl,-shared")
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG "-Wl,-Xlinker,-rpath,-Xlinker,")
|
||||
set(CMAKE_SHARED_LIBRARY_RUNTIME_Fortran_FLAG_SEP ":")
|
||||
set(CMAKE_SHARED_LIBRARY_RPATH_LINK_Fortran_FLAG "-Wl,-Xlinker,-rpath-link,-Xlinker,")
|
||||
set(CMAKE_SHARED_LIBRARY_SONAME_Fortran_FLAG "-Wl,-Xlinker,-soname,-Xlinker,")
|
||||
set(CMAKE_SHARED_LIBRARY_LINK_Fortran_FLAGS "-Wl,-rdynamic")
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Linux-PGI)
|
||||
__linux_compiler_pgi(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Linux-PGI)
|
||||
__linux_compiler_pgi(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Linux-PGI)
|
||||
__linux_compiler_pgi(Fortran)
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PGI.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__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()
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale-C.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale-C.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Linux-PathScale)
|
||||
__linux_compiler_pathscale(C)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale-CXX.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale-CXX.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Linux-PathScale)
|
||||
__linux_compiler_pathscale(CXX)
|
||||
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale-Fortran.cmake
vendored
Normal file
2
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale-Fortran.cmake
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Linux-PathScale)
|
||||
__linux_compiler_pathscale(Fortran)
|
||||
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale.cmake
vendored
Normal file
25
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-PathScale.cmake
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
|
||||
#=============================================================================
|
||||
# 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(__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()
|
||||
9
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-SunPro-CXX.cmake
vendored
Normal file
9
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-SunPro-CXX.cmake
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
# Sun C++ 5.9 does not support -Wl, but Sun C++ 5.11 does not work without it.
|
||||
# Query the compiler flags to detect whether to use -Wl.
|
||||
execute_process(COMMAND ${CMAKE_CXX_COMPILER} -flags OUTPUT_VARIABLE _cxx_flags ERROR_VARIABLE _cxx_error)
|
||||
if("${_cxx_flags}" MATCHES "\n-W[^\n]*component")
|
||||
set(CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG "-Wl,-rpath-link,")
|
||||
else()
|
||||
set(CMAKE_SHARED_LIBRARY_RPATH_LINK_CXX_FLAG "-rpath-link ")
|
||||
endif()
|
||||
SET(CMAKE_EXE_EXPORTS_CXX_FLAG "--export-dynamic")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-VisualAge-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-VisualAge-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/Linux-XL-C)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-VisualAge-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-VisualAge-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/Linux-XL-CXX)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-VisualAge-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-VisualAge-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
include(Platform/Linux-XL-Fortran)
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-XL-C.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-XL-C.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-XL-CXX.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-XL-CXX.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS "-qmkshrobj")
|
||||
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-XL-Fortran.cmake
vendored
Normal file
1
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-XL-Fortran.cmake
vendored
Normal file
@@ -0,0 +1 @@
|
||||
SET(CMAKE_SHARED_LIBRARY_CREATE_Fortran_FLAGS "-qmkshrobj")
|
||||
17
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-como.cmake
vendored
Normal file
17
extern/cmake/2.85/share/cmake-2.8/Modules/Platform/Linux-como.cmake
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
# create a shared C++ library
|
||||
SET(CMAKE_CXX_CREATE_SHARED_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
|
||||
"<CMAKE_CXX_COMPILER> <CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <LINK_FLAGS> -o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
|
||||
|
||||
# create a C++ static library
|
||||
SET(CMAKE_CXX_CREATE_STATIC_LIBRARY
|
||||
"<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
|
||||
"<CMAKE_AR> cr <TARGET> <LINK_FLAGS> <OBJECTS> "
|
||||
"<CMAKE_RANLIB> <TARGET> ")
|
||||
|
||||
SET(CMAKE_CXX_LINK_EXECUTABLE
|
||||
"<CMAKE_CXX_COMPILER> --prelink_objects <OBJECTS>"
|
||||
"<CMAKE_CXX_COMPILER> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
|
||||
|
||||
SET(CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG "")
|
||||
SET(CMAKE_SHARED_LIBRARY_C_FLAGS "")
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user