Fixes and updates to BlueGene/Q support
[alexxy/gromacs.git] / cmake / Platform / BlueGeneQ-static-XL-C.cmake
1 #
2 # This file is part of the GROMACS molecular simulation package.
3 #
4 # Copyright (c) 2013,2014, by the GROMACS development team, led by
5 # Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl,
6 # and including many others, as listed in the AUTHORS file in the
7 # top-level source directory and at http://www.gromacs.org.
8 #
9 # GROMACS is free software; you can redistribute it and/or
10 # modify it under the terms of the GNU Lesser General Public License
11 # as published by the Free Software Foundation; either version 2.1
12 # of the License, or (at your option) any later version.
13 #
14 # GROMACS is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17 # Lesser General Public License for more details.
18 #
19 # You should have received a copy of the GNU Lesser General Public
20 # License along with GROMACS; if not, see
21 # http://www.gnu.org/licenses, or write to the Free Software Foundation,
22 # Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA.
23 #
24 # If you want to redistribute modifications to GROMACS, please
25 # consider that scientific software is very special. Version
26 # control is crucial - bugs must be traceable. We will be happy to
27 # consider code for inclusion in the official distribution, but
28 # derived work must not be called official GROMACS. Details are found
29 # in the README & COPYING files - if they are missing, get the
30 # official version at http://www.gromacs.org.
31 #
32 # To help us fund GROMACS development, we humbly ask that you cite
33 # the research papers on the package. Check out http://www.gromacs.org.
34 #
35 #=============================================================================
36 # CMake - Cross Platform Makefile Generator
37 # Copyright 2000-2011 Kitware, Inc., Insight Software Consortium
38 # Copyright 2010 Todd Gamblin <tgamblin@llnl.gov>
39 # Copyright 2012 Julien Bigot <julien.bigot@cea.fr>
40 # All rights reserved.
41 #
42 # Redistribution and use in source and binary forms, with or without
43 # modification, are permitted provided that the following conditions
44 # are met:
45 #
46 # * Redistributions of source code must retain the above copyright
47 #   notice, this list of conditions and the following disclaimer.
48 #
49 # * Redistributions in binary form must reproduce the above copyright
50 #   notice, this list of conditions and the following disclaimer in the
51 #   documentation and/or other materials provided with the distribution.
52 #
53 # * Neither the names of Kitware, Inc., the Insight Software Consortium,
54 #   nor the names of their contributors may be used to endorse or promote
55 #   products derived from this software without specific prior written
56 #   permission.
57 #
58 # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
59 # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
60 # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
61 # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
62 # HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
63 # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
64 # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
65 # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
66 # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
67 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
68 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
69 #
70 #=============================================================================
71
72 include(BlueGeneQ-static)
73 __BlueGeneQ_set_static_flags(XL C)
74 __BlueGeneQ_set_static_flags(XL CXX)
75
76 set(CMAKE_SYSTEM_NAME BlueGeneQ-static CACHE STRING "Cross-compiling for BlueGene/Q" FORCE)
77 # xl.ndebug is appropriate for production calculations. For debugging,
78 # use xl to add back error checks and assertions. Using the
79 # thread-safe compiler version is required, so use (e.g.)
80 # CMAKE_C_COMPILER=/bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlc_r
81 # CMAKE_CXX_COMPILER=/bgsys/drivers/ppcfloor/comm/xl.ndebug/bin/mpixlcxx_r
82
83 mark_as_advanced(CMAKE_XL_CreateExportList) # No idea what spams this