summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Windows-PGI: Adapt default compiler flagsChristian Pfeiffer2017-05-201-1/+9
| | | | | | PGI demands -Bdynamic (/MD equivalent) for linking together dynamic libraries, so we should make it our default mirroring the settings of e.g. Visual C++ and Intel C++.
* ImplicitLinkInfo: Add support for PGI on WindowsChristian Pfeiffer2017-05-201-4/+13
| | | | | | | Since PGI does not write linker directives into objects, the necessary libraries have to be parsed from commandline. PGI does however link the Visual C++ runtime libraries, so they have to be filtered out to ensure no collision with settings of other languages can occur.
* Merge topic 'getprerequisites-fix'Brad King2017-05-121-1/+5
|\ | | | | | | | | | | | | e0e414d6 GetPrerequisites: Only recurse on resolved unseen prerequisites Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !804
| * GetPrerequisites: Only recurse on resolved unseen prerequisitesGuillaume Dumont2017-05-111-1/+5
| | | | | | | | | | | | | | | | I encountered an issue where not all prerequisites would be listed by `get_prerequisites` since some of the prerequisites cannot be resolved and are added to the list of unseen prerequisites. This has the side effect of clearing the list of `prerequisites_var` and thus removes some prerequisites from the list. Fix it.
* | Merge topic 'add_cuda_cxx14_flag'Brad King2017-05-121-0/+6
|\ \ | | | | | | | | | | | | | | | | | | 036ffe81 CUDA: Add support for the C++14 standard flag. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !830
| * | CUDA: Add support for the C++14 standard flag.Robert Maynard2017-05-111-0/+6
| | | | | | | | | | | | | | | CUDA 9 toolkit has announced support for C++14 flag, so lets allow users to use it.
* | | Features: Record features for SunPro C 5.13 and 5.14Brad King2017-05-112-0/+29
| |/ |/|
* | Merge topic 'sunpro-fpp-fix'Brad King2017-05-111-2/+2
|\ \ | | | | | | | | | | | | | | | | | | 1cd40bd2 SunPro: Use -fpp to process all files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !826
| * | SunPro: Use -fpp to process all filesChristian Pfeiffer2017-05-101-2/+2
| | | | | | | | | | | | | | | | | | | | | By using only -F, SunPro does not process files that don't have a .F or .F90 extension. This means that the preprocess rules don't quite work as expected, for instance breaking the Ninja generator's behavior during cmake_ninja_depends.
* | | PGI: Fix typo in compiler version test for language standardsChuck Atkins2017-05-101-1/+1
|/ /
* | Merge topic 'sunpro-c++11-link'Brad King2017-05-101-0/+10
|\ \ | | | | | | | | | | | | | | | | | | d49aa107 Features: On SunPro link feature check with lang std flag Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !818
| * | Features: On SunPro link feature check with lang std flagBrad King2017-05-091-0/+10
| | | | | | | | | | | | | | | | | | | | | Follow up commit e17b179184 (Features: On SunPro link with language standard compiler flag, 2017-04-28) to apply the same fix to the feature checks. The `try_compile` used for these is intentionally not using `CXX_STANDARD`-based logic so that it can test the individual flags.
* | | FindOpenMP: Cache compilation resultsChristian Pfeiffer2017-05-081-12/+10
| | |
* | | FindOpenMP: Refine list of flags to tryChristian Pfeiffer2017-05-081-5/+10
| |/ |/|
* | Merge topic 'f2c-int-fix'Brad King2017-05-084-6/+16
|\ \ | | | | | | | | | | | | | | | | | | | | | 93f119ed FortranCInterface: Add support for PGI on Windows 2cfea104 FortranCInt: Pass CONFIG flags to try_compile Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !802
| * | FortranCInterface: Add support for PGI on WindowsChristian Pfeiffer2017-05-063-3/+9
| | |
| * | FortranCInt: Pass CONFIG flags to try_compileChristian Pfeiffer2017-05-062-3/+7
| | | | | | | | | | | | | | | | | | This change ensures that Intel Fortran's /libs: in CMAKE_Fortran_FLAGS and Visual C++'s /MT or /MD in the CMAKE_C_FLAGS_RELEASE do not conflict with each other.
* | | Merge topic 'nag-fortran-version'Brad King2017-05-082-1/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d47190ba NAG: Detect compiler version of NAG Fortran d52a4256 NAG: Extend compiler tool selection with NAG Fortran Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: Tom <tom.clune@nasa.gov> Merge-request: !809
| * | | NAG: Detect compiler version of NAG FortranTom Clune2017-05-051-0/+5
| | | | | | | | | | | | | | | | Fixes: #16817
| * | | NAG: Extend compiler tool selection with NAG FortranTom Clune2017-05-051-1/+3
| | | | | | | | | | | | | | | | Add `nag` and `nagfor`.
* | | | Merge topic 'pgi-rdynamic-fix'Brad King2017-05-081-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb31229e Linux-PGI: Prevent -rdynamic ending up in flags Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !808
| * | | | Linux-PGI: Prevent -rdynamic ending up in flagsChristian Pfeiffer2017-05-051-0/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ensure that PGI on Linux keeps its CMAKE_SHARED_LIBRARY_LINK_<LANG>_FLAGS empty, especially of -rdynamic. In CMakeFortranInformation a lot of flags will be copied from their C equivalents if they're not defined. By using a combination of GCC and PGFortran, this will lead to -rdynamic ending up in the PGI flags and none of the PGI compilers understand that flag, crashing with a fatal error.
* | | | Merge topic 'pgi-fix-linux'Brad King2017-05-081-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d59e3509 Do not assume GCC libs are linked by all compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !800
| * | | | Do not assume GCC libs are linked by all compilersChristian Pfeiffer2017-05-051-1/+1
| |/ / / | | | | | | | | | | | | | | | | Not all compilers link libgcc and libgcc_s causing trouble when linking C++ code with instance PGI Fortran and C compilers.
* | | | Merge topic 'FindOpenCL-AMDAPPSDKROOT'Brad King2017-05-081-0/+1
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | b259fe84 FindOpenCL: Add missing PATHS keyword Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !807
| * | | FindOpenCL: Add missing PATHS keywordKirill Mavreshko2017-05-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The change in commit b888104e44 (FindOpenCL: add AMDAPPSDKROOT into paths for OpenCL library, 2017-05-03) accidentally left out the `PATHS` keyword. Without it properly installed AMD APP SDK (OpenCL) cannot be detected. Tested on Ubuntu 16.04.
* | | | Merge topic 'add-more-sunpro-c-flags'Brad King2017-05-051-4/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1a09a7d9 SunPro: Add more flags for C language standards Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !803
| * | | | SunPro: Add more flags for C language standardsChuck Atkins2017-05-041-4/+11
| | | | |
* | | | | Merge topic 'findjava-openjdk9'Brad King2017-05-051-0/+3
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | f5a3ec4d FindJava: Add support for OpenJDK early access builds Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !797
| * | | | FindJava: Add support for OpenJDK early access buildsBryan Donlan2017-05-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenJDK 9 early access builds use a version string of "9-ea", and locally built installations use "9-internal", neither of which is currently accepted by the FindJava macro. Map those versions to "1.9". If the final released version is "9.0" the version interpretation could be changed to match at that time.
* | | | | Merge topic 'sunpro-5.14'Brad King2017-05-042-0/+18
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | f15f905b Features: Record standards and features for SunPro 5.14 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !795
| * | | | Features: Record standards and features for SunPro 5.14Brad King2017-05-032-0/+18
| |/ / / | | | | | | | | | | | | | | | | Oracle Studio 12.5 adds support for C 11 and associated standard flags. It also adds a few more C++ 11 features.
* | | | Merge topic 'FindOpenCL-AMDAPPSDKROOT'Brad King2017-05-041-1/+5
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | b888104e FindOpenCL: add AMDAPPSDKROOT into paths for OpenCL library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !792
| * | FindOpenCL: add AMDAPPSDKROOT into paths for OpenCL libraryJeremy Tellaa2017-05-031-1/+5
| | | | | | | | | | | | | | | This path was only looked up for windows. The AMD SDK also exists for Linux, and we may want to use the OpenCL library for there.
* | | Merge topic 'ipo-xcode'Brad King2017-05-031-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7e75568b Xcode: Support IPO (LTO) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !785
| * | | Xcode: Support IPO (LTO)Ruslan Baratov2017-05-021-1/+1
| | | |
* | | | Merge topic 'port-language-default-to-common-macro'Brad King2017-05-0316-174/+69
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d9089876 AppleClang: Use common compiler macros for language standard default 174c02e1 SunPro: Use common compiler macros for language standard default 08fa2ba8 Clang: Use common compiler macros for language standard default 0198502f Intel: Use common compiler macros for language standard default d1aa2b3f GNU: Use common compiler macros for language standard default 87b9d6d9 XL: Use common compiler macros for language standard default Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !787
| * | | | AppleClang: Use common compiler macros for language standard defaultChuck Atkins2017-05-022-23/+2
| | | | |
| * | | | SunPro: Use common compiler macros for language standard defaultChuck Atkins2017-05-022-11/+16
| | | | |
| * | | | Clang: Use common compiler macros for language standard defaultChuck Atkins2017-05-023-26/+4
| | | | |
| * | | | Intel: Use common compiler macros for language standard defaultChuck Atkins2017-05-023-29/+6
| | | | |
| * | | | GNU: Use common compiler macros for language standard defaultChuck Atkins2017-05-023-26/+4
| | | | |
| * | | | XL: Use common compiler macros for language standard defaultChuck Atkins2017-05-023-59/+37
| | |/ / | |/| |
* | | | PGI: Fix typo in logic for C standard flagsChuck Atkins2017-05-021-1/+1
|/ / /
* | | Merge topic 'add-language-standards-to-more-compilers'Brad King2017-05-027-0/+146
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9b97cb55 PGI: Add language standards for PGI daae564d Cray: Add language standards for the Cray compiler 25e83ce5 CompileFeatures: Let STD compile options be a list 1de70845 Compilers: Add common macros to be used by various compilers Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !784
| * | | PGI: Add language standards for PGIChuck Atkins2017-05-013-0/+34
| | | |
| * | | Cray: Add language standards for the Cray compilerChuck Atkins2017-05-013-0/+50
| | | |
| * | | Compilers: Add common macros to be used by various compilersChuck Atkins2017-05-011-0/+62
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | With numerous compilers now supporting multiple language standards in CMake, some common design patterns have begun to emerge. This is intended to be a collection of macros implementing many of those common design patterns that can be factored out and leveraged by many compilers. Currently this only contains the code to set the default language standard of not preset. More functionality will be added in the future as appropriate.
* | | Merge topic 'sunpro-c++11-link'Brad King2017-05-021-0/+1
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | e17b1791 Features: On SunPro link with language standard compiler flag d037be12 cmLocalGenerator: Add a hook for compiler flags used at link time b115bc49 Features: Refactor <LANG>_STANDARD update Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !783
| * | Features: On SunPro link with language standard compiler flagBrad King2017-05-011-0/+1
| |/ | | | | | | | | | | When C++ feature requirements or `CXX_STANDARD` cause us to compile on SunPro with the `-std=c++11` option, link with the option too. This is needed to make the compiler use the matching standard library.