summaryrefslogtreecommitdiff
path: root/CMAKE
AgeCommit message (Collapse)AuthorFilesLines
2017-02-21[coverage] Updated cmake coverage files for LapackGuillaume Jacquenot2-336/+280
2017-02-21[coverage] Added cmake files for coverageGuillaume Jacquenot2-0/+413
2016-11-26merging: Various cleanups to makefiles #84Julie1-0/+0
Contribution by @turboencabulator Closing #84
2016-07-28COMP: Prevent insource builds and inbuild installsHans Johnson2-0/+54
With cmake is best to require out-of-source builds, and to avoid intalling into the same directory as the build was performed. Both of these situations can cause very confusing situations that can frustrate new users of the software package, so check for and provide guidance to the end-users. These files were initially contributed to the ITK (www.itk.org) project and have been widely re-used by many other projects. NOTE: This patch is dependant on pull request #16
2016-07-10Remove CMake-language block-end command argumentsHans Johnson2-6/+6
Ancient versions of CMake required else(), endif(), and similar block termination commands to have arguments matching the command starting the block. This is no longer the preferred style. NOTE: MUST USE GNU compliant version of sed Run the following shell code: for c in else endif endforeach endfunction endmacro endwhile; do echo 's/\b'"$c"'\(\s*\)(.\+)/'"$c"'\1()/' done >convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \ | xargs -0 gsed -i -f convert.sed \ && rm convert.sed
2016-07-10STYLE: Convert CMake-language commands to lower caseHans Johnson1-33/+33
Ancient CMake versions required upper-case commands. Later command names became case-insensitive. Now the preferred style is lower-case. Run the following shell code: NOTE: MUST USE GNU compliant version of sed cmake --help-command-list \ | grep -v "cmake version" \ | while read c; do echo 's/\b'"$(echo $c | tr '[:lower:]' '[:upper:]')"'\(\s*\)(/'"$c"'\1(/g' done >convert.sed \ && git ls-files -z -- bootstrap '*.cmake' '*.cmake.in' '*CMakeLists.txt' \ | xargs -0 gsed -i -f convert.sed \ && rm convert.sed
2016-07-09STYLE: Remove trailing whitespace in MISC filesHans Johnson1-0/+0
This is mostly a long term maintenance improvement. Many coding styles require elimination of trailing whitespace, and many editors and source code management configurations automatically gobble up whitespace. When these tools gobble up whitespace, it complicates reviewing the meaningful code changes. By removing whitespace on one patch, it makes future code reviews much easier. =SCRIPT==================================================================== if which tempfile &>/dev/null; then TEMPMAKER=tempfile elif which mktemp &>/dev/null; then TEMPMAKER=mktemp else echo "Cannot find tempfile program." 2>&1 exit 1 fi MYTEMP=$($TEMPMAKER) trap 'rm -f $MYTEMP' SIGINT SIGTERM stripit() { echo "stripping $1" sed 's/[ \t]*$//' "$1" > $MYTEMP cp $MYTEMP "$1" } if [ $# -gt 0 ]; then while [ "$1" != "" ]; do stripit $1 shift done else while read -t 2; do stripit $REPLY done fi rm $MYTEMP =================================================
2016-07-09STYLE: Remove trailing whitespace in CMake filesHans Johnson3-14/+14
This is mostly a long term maintenance improvement. Many coding styles require elimination of trailing whitespace, and many editors and source code management configurations automatically gobble up whitespace. When these tools gobble up whitespace, it complicates reviewing the meaningful code changes. By removing whitespace on one patch, it makes future code reviews much easier.
2015-09-02Committing Nico's change about build system improvements for LAPACKjulie1-8/+0
"One of the improvements with the patches is that SOVERSION and VERSION are now properly set and the proper symlinks are created: ``` liblapack.so -> liblapack.so.3 liblapack.so.3 -> liblapack.so.3.5.0 liblapack.so.3.5.0 ``` Since BLAS is shipped with LAPACK and no separate version number is given for BLAS, I applied the same there, too." Tested on Julie's Mac TO DO: To test under Windows ==== Updated OSX RPATH settings In response to CMake 3.0 generating warnings regarding policy CMP0042, the OSX RPATH settings have been updated per recommendations found in the CMake Wiki: http://www.cmake.org/Wiki/CMake_RPATH_handling#Mac_OS_X_and_the_RPATH
2014-02-09== Patch provided by Brad King from Kitware - brad.king@kitware.com ==julie2-3/+25
Provide CMake packages for both LAPACK and LAPACKE Teach "lapack-config.cmake" to provide variables LAPACK_blas_LIBRARIES LAPACK_lapack_LIBRARIES that contain either the target names when using the reference implementation or the system libraries found for them. Configure a "lapacke-config.cmake" file for the build and install trees to package LAPACKE. Teach it to load the LAPACK package installed with it. Provide variables LAPACKE_INCLUDE_DIRS LAPACKE_LIBRARIES containing the header file search path for lapacke headers and the list of lapacke library targets. This requires CMake 2.8.10 to separate the installation export for the lapacke library from the other targets.
2013-12-06Remove unused leftover GNUtoMS support filejulie1-16/+0
2013-12-06Remove GNUtoMS code in favor of CMake builtin version - Thanks Brad (Kitware)julie6-110/+0
2012-08-25(no commit message)julie1-1/+1
2012-04-25Update CMAKE version requirement and remove FindBLAS module that is now ↵julie1-451/+0
include inside CMAKE
2012-01-10Adding CMAKE Support for LAPACKE.julie2-1/+106
Now we can generate dll for LAPACK and LAPACKE directly for Mingw so that FORTRAN compiler is longer needed. Because LAPACKE contains some routines from MATGEN (for PLASMA), LAPACKE will requires the tmglib library. Add some LAPACK 3.4.0 routines were missing in the CMAKE LAPACK build.
2011-08-15Add missing files for GNU-built LAPACK DLLs with MS toolsjulie5-0/+124
2011-08-09Commiting BRAD patch julie2-0/+2
Here is a patch for lapack to provide MS-format dll import libraries from the MinGW GNU toolchain. It is ready for others to try before it goes upstream. You just need to have MinGW GNU Fortran 4.x and one of the VS IDEs installed. Configure a MinGW build with BUILD_SHARED_LIBS set to ON. The resulting build (and install) tree will provide both GNU-format and MS-format import libraries for the DLLs. A C application built with MSVC and linked to the MinGW-built lapack DLLs will run but requires the GNU runtime DLLs from MinGW to be available. I tested this with both 32-bit and 64-bit builds. For the latter I used the mingw64 gfortran. In both cases I just put the GNU runtime directory in my PATH. I think both libgfortran-3.dll and libgcc_s_dw2-1.dll are needed. This may be used to create a binary LAPACK distribution for Windows that will work without any GNU tools installed. One needs only to provide the MinGW GNU runtime libraries along with blas.dll and lapack.dll. -Brad
2011-03-06Added compiler options needed for HP Fortranjulie1-0/+21
- Chuck Atkins (Kitware)
2011-02-26Corrected a typo in the output message when setting optimization leveljulie1-1/+1
- Chuck Atkins (Kitware)
2011-02-26Re-worked type-size checks to search for differnt sizes for different typesjulie1-25/+31
- Chuck Atkins (Kitware)
2011-02-26Recude RELEASE optimization level from O>3 to O2julie1-2/+12
- Chuck Atkins (Kitware)
2011-02-07Move CMake files to a subdirectoryjulie4-0/+39
- Brad King (Kitware)
2011-02-07Revert "Move CMake files to a subdirectory"julie4-39/+0
This reverts commit bc425c443232cf9737afcce38753f79963d31e0a.
2011-02-07Move CMake files to a subdirectoryjulie4-0/+39
2010-12-31Re-worked the type size check to be much more compactjulie3-62/+52
- Chuck Atkins (Kitware)
2010-12-30Added acml_mv to the ACML link librariesjulie1-3/+3
- Chuck Atkins (Kitware)
2010-12-301. Adjusted regex checks in CheckLAPACKCompilerFlags.cmake to be more compactjulie3-129/+288
2. Added CheckFortranIntSize.cmake to auto-determine the default integer size 3. Added more auto-detection features using integer size and compiler checks in FindBLAS.cmake - Chuck Atkins (Kitware)
2010-12-241. Fixed a typo in FindBLAS for SGI (SCCL should have been SCSL) and 2. ↵julie2-8/+8
Fixed compiler flag check for SunPro to use ftrap=%none instead of ftrap=none. - Chuck Atkins (Kitware)
2010-12-231. Added support for both IBM XL Fortran and IBM VisualAge Fortranjulie2-9/+22
2. Added libblas to ESSL libs to cover missing functionality from ESSL 3. Renamed ESSL_6464, ESSL_SMP, and ESSL_SMP_6464 to ESSL6464, ESSLSMP, and ESSLSMP6464 respectively to mimic the actual library names. 4. Added copyright notice to CheckLAPACKCompilerFlags - Chuck Atkins (Kitware)
2010-12-23Fixed a bug in the IBM compiler options (-ffixed-form -> -qfixed).julie1-2/+2
- Chuck Atkins (Kitware)
2010-12-23Added checks disable floating point exceptions for GNU, Intel, Sun, and IBM ↵julie1-0/+53
compilers and to enforce fixed-form for IBM compilers. - Chuck Atkins (Kitware)
2010-12-21Fixed FindBLAS for Sun Performance Libraryjulie1-4/+6
- Chuck Atkins (Kitware)
2010-12-161. Corrected the way linker flags from FindBLAS are being usedjulie1-102/+114
2. Changed LOOK_FOR_OPTIMIZED_BLAS to USE_OPTIMIZED_BLAS per CMake convention 3. Changed BLAS_VENDORS to use library names instead of manufacturer names: From: BLAS_VENDORS=AMD;IBM;INTEL;HP;SUN etc To: BLAS_VENDORS=ACML;ESSL;MKL;VECLIB;PERFLIB This seems to be a more intuitive interface 4. Added support for Intel MKL single dynamic library - Chuck Atkins (Kitware)
2010-12-15Added compiler flags from FindBLAS.julie1-6/+7
2010-12-15minor modif on find BLASjulie1-14/+14
2010-12-15Removed leftover debug messages from FindBLAS.cmakejulie1-2/+0
2010-12-15Added support for external BLAS libraries in the CMake build.julie1-0/+329