summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Use C++11 nullptr (cont.)Matthias Maennich2017-09-1914-67/+68
| | | | | | | Fix remaining occurrences of the issue addressed in commit 5962db4389 (Use C++11 nullptr, 2017-08-22) that are only showing up on macOS. Signed-off-by: Matthias Maennich <matthias@maennich.net>
* Merge topic 'ctest-runcommand'Brad King2017-09-184-26/+44
|\ | | | | | | | | | | | | | | 67529aab Doc: document that CoverageExtraFlags will come first 69fac3c3 pass arguments as vector to cmCTest::RunCommand() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1261
| * Doc: document that CoverageExtraFlags will come firstRolf Eike Beer2017-09-151-0/+2
| |
| * pass arguments as vector to cmCTest::RunCommand()Rolf Eike Beer2017-09-153-26/+42
| | | | | | | | | | | | | | The only 2 callers took care to construct a properly escaped string, but not using the documented way, and that string was passed only to be immediately split into tokens again. Start with a vector and join it only for logging, avoiding needless quotes during that.
* | Merge topic 'findmpi-overhaul'Brad King2017-09-189-483/+1340
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | bf1e606f FindMPI: Add support for FreeBSD and SLES 2f673da6 FindMPI: Support components for various languages 9a58e69c FindMPI: Modernization from ground up Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !893
| * | FindMPI: Add support for FreeBSD and SLESChristian Pfeiffer2017-09-151-2/+29
| | | | | | | | | | | | Fixes: #17117
| * | FindMPI: Support components for various languagesChristian Pfeiffer2017-09-153-19/+79
| | |
| * | FindMPI: Modernization from ground upChristian Pfeiffer2017-09-158-480/+1250
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a near-total rewrite of FindMPI implementing the following features: Environmental improvements: - C++ settings can now be picked from C settings if no dedicated C++ settings are found (some installs of IBM Platform MPI) - Fortran settings can now be found on MPICH-1, MVAPICH-1, Microsoft MPI and MPICH-2 on Windows. - Improved flag procession logic: Flags related to security enhancements of MPI itself, and unrelated to MPI usage (-fstack-protector-strong on e.g. RHEL 7 for MPICH and MVAPICH) will be filtered out properly now. -pthread is now being handled. -fno-strict-aliasing, which may be needed while compiling MVAPICH (e.g. RHEL 7's MVAPICH package) is also filtered. Features added: - MPI version can be determined for each language and is exposed as the package version - MPI functionality is being tested to ensure the correctness of settings - MPI-2 C++ bindings can be suppressed if desired by the project or user. For older MPIs, this often resolves issues and eliminated the infamous SEEK_SET trouble. - MPI-2 C++ bindings are now being searched for and exposed by a variable if detected. - Fortran support now does not make assumptions over the MPI present and works with ILP64 MPI implementations. - Fortran now exposes which bindings (mpif.h, mpi/mpi_f08 modules) are available - MPI detection can now work hybridly, which for example permits using the Fortran modules shipped with some compiler suites together with MPI (e.g. PGI on Windows shipping MSMPI modules) - Ability to determine MPI library version (*requires* try_run, caution) upon request - Ability to determine Fortran capabilities from MPI-3 for each of the bindings (subarrays, asynchronous attribute protecting entities) (also requires try_run) Fine grained control over the search process: - Possibility to selectively enable and disable steps like compiler wrapper search and guessing. Permits picking Microsoft MPI over Intel MPI if both are loaded (previously not possible without removing the IMPI compiler wrappers from the environment) - Ability to pick MPICH2 over MSMPI (previously the first one located was taken) - A user may now pass compiler flags to the compiler wrapper script, enabling much more flexibility. This permits for example linking the Intel MPI debug runtime, static linking, ILP64 with Fortran, linking tracing, ... - A user may define a suffix for all MPI binaries that are being looked for (useful on Debian/Ubuntu where the alternative MPI installs are each appended with their name, e.g. mpicc.mpich and mpicc.lam) Cache variable improvements - Instead of the previous plural cache variables a list-of-variables approach is now in place. Permits correcting individual variables instead of having to wade through a list, also speeds up the search process and increases comfort by eliminating duplicate entries in LIBRARIES over languages - MPIEXEC was corrected to MPIEXEC_EXECUTABLE in order to fix the grouping in the CMake GUI for the variable (previously ungrouped)
* | | Merge topic 'FindBoost-no-find_dependency'Brad King2017-09-181-4/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 3080a0a6 FindBoost: Improve behavior when thread dependency is missing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1272
| * | | FindBoost: Improve behavior when thread dependency is missingBrad King2017-09-151-4/+14
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | The `find_dependency` macro is not meant for use in find modules and `return()`s from the caller when the package is not found. Avoid using it in FindBoost. Instead use plain `find_package` for the Threads package and manually forward the `QUIET` argument. When the Threads package is missing then treat the Boost `thread` component as missing. Issue: #17257
* | | Merge topic 'cmake-gui-high-dpi'Brad King2017-09-181-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 6fb36572 cmake-gui: Enable High DPI scaling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1271
| * | | cmake-gui: Enable High DPI scalingLuis Caro2017-09-151-0/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | This Qt flag enables UI scaling based on scale factor provided by the operating system. Only supported on versions of Qt >= 5.6. The flag has no effect on macOS, where high DPI support is already enabled as a setting in the bundle's info.plist. Fixes: #17026
* | | Merge topic 'libuv-bootstrap'Brad King2017-09-1810-14/+317
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 714ce728 bootstrap: Make libuv available during bootstrap 6a2d967d bootstrap: Require compiler mode aware of C99 on Solaris Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1131
| * | | bootstrap: Make libuv available during bootstrapBrad King2017-09-1710-14/+313
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On UNIX, build only the parts of libuv we need for the filesystem, process, and poll abstractions using the POSIX poll() backend. This avoids many platform-specific conditions. On Windows, build all of libuv; there are no conditional alternatives anyway.
| * | | bootstrap: Require compiler mode aware of C99 on SolarisBrad King2017-09-171-0/+4
| | | | | | | | | | | | | | | | | | | | On Solaris some system headers included in C with `-D_XOPEN_SOURCE=600` require C99 support by the compiler.
* | | | Merge topic 'cxx11-override'Brad King2017-09-18255-1165/+1090
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 98530d3c cm_codecvt: Tell IWYU to keep cmConfigure.h 4e14498f Drop now-unused definition of CM_OVERRIDE 0b33aee4 Use C++11 override instead of CM_OVERRIDE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1265
| * | | | cm_codecvt: Tell IWYU to keep cmConfigure.hBrad King2017-09-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | We no longer need it explicitly for `CM_OVERRIDE`, but we still need to include it first everywhere.
| * | | | Drop now-unused definition of CM_OVERRIDEBrad King2017-09-154-33/+0
| | | | |
| * | | | Use C++11 override instead of CM_OVERRIDEBrad King2017-09-15251-1131/+1089
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | We now require C++11 support including `override`. Drop use of the old compatibility macro. Convert references as follows: git grep -l CM_OVERRIDE -- '*.h' '*.hxx' '*.cxx' | xargs sed -i 's/CM_OVERRIDE/override/g'
* | | | Merge topic 'test-cleanups'Brad King2017-09-1823-219/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7200ab49 Tests: Fix CMake syntax warning in VSGNUFortran test 9da13bc3 Tests: Fix some references to 'cmake' executable f1f109e9 Tests: Drop tests that have not run for over 10 years Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1270
| * | | | Tests: Fix CMake syntax warning in VSGNUFortran testBrad King2017-09-151-1/+1
| | | | |
| * | | | Tests: Fix some references to 'cmake' executableBrad King2017-09-151-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | Use `${CMAKE_CMAKE_COMMAND}` rather than `cmake` or `${CMAKE_COMMAND}` in order to ensure we always refer to the `cmake` command being tested.
| * | | | Tests: Drop tests that have not run for over 10 yearsBrad King2017-09-1522-209/+0
| |/ / /
* | | | Merge branch 'release-3.9'Brad King2017-09-180-0/+0
|\ \ \ \
| * \ \ \ Merge branch 'backport-FindBoost-1.65' into release-3.9Brad King2017-09-181-3/+27
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !1280
| * \ \ \ \ Merge branch 'revert-vim-no-tabs' into release-3.9Brad King2017-09-181-1/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Merge-request: !1273
* | \ \ \ \ \ Merge topic 'backport-FindBoost-1.65'Brad King2017-09-180-0/+0
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ee1f8903 FindBoost: Add support for Boost 1.65.0 and 1.65.1 to CMake 3.9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1280
| * | | | | | FindBoost: Add support for Boost 1.65.0 and 1.65.1 to CMake 3.9Roger Leigh2017-09-181-3/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport the changes from commit fa114e7d70 (FindBoost: Add Boost 1.65 dependencies, 2017-08-22) and commit dbba53a5aa (FindBoost: Add version 1.65.1, 2017-09-06) to CMake 3.9. Fixes: #17289
* | | | | | | Merge topic 'revert-vim-no-tabs'Brad King2017-09-181-1/+0
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0d543589 vim: Remove default setting of expandtab Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Maurice <m-ou.se@m-ou.se> Merge-request: !1273
| * | | | | | vim: Remove default setting of expandtabMaarten de Vries2017-09-181-1/+0
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | An update from vim-cmake-syntax by commit v3.9.0-rc1~167^2^2 (vim-cmake-syntax 2017-05-02, 2017-05-02) brought in a change to set `expandtab` in CMake language files. This should be a per-project or per-user choice instead, so drop the setting.
* | | | | | CMake Nightly Date StampKitware Robot2017-09-181-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2017-09-171-1/+1
| | | | | |
* | | | | | CMake Nightly Date StampKitware Robot2017-09-161-1/+1
| |_|/ / / |/| | | |
* | | | | Merge topic 'refactor-iwyu-code'Brad King2017-09-1524-241/+333
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3bbe95f5 Clean up iwyu code to not be one big if statement. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1247
| * | | | | Clean up iwyu code to not be one big if statement.Bill Hoffman2017-09-1324-241/+333
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit changes the internal -E__run_iwyu to be -E__run_co_compile. This is used for co-compile commands. These are tools that want to mirror the compiler. For each compiler invocation the tool will be invoked first. This started as a way to implement include what you use (iwyu), but has expanded to include cpplint, cppcheck and others. Likely there will be more in the future as well. This commit implements each one in its own function and provides a way to add additional ones in the future with less work.
* | | | | Merge topic 'findopenmp-components'Brad King2017-09-152-17/+48
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d25f30a6 FindOpenMP: Add support for components 23530151 FindOpenMP: Minor environmental improvements Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1266
| * | | | | FindOpenMP: Add support for componentsChristian Pfeiffer2017-09-142-15/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Language specific components are added to FindOpenMP to ease consumption of the module's results.
| * | | | | FindOpenMP: Minor environmental improvementsChristian Pfeiffer2017-09-141-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A backup flag for Cray compilers was added and the OpenMP 5.0 Preview 1 document was added to the specification map.
* | | | | | Merge topic 'codeblocks-exclude-external'Brad King2017-09-155-1/+39
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fb19b778 CodeBlocks: add option to exclude external files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1159
| * | | | | | CodeBlocks: add option to exclude external filesAlexandr (Sagrer) Gridnev2017-09-145-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add variable `CMAKE_CODEBLOCKS_EXCLUDE_EXTERNAL_FILES` to optionally exclude files from outside the project root from the project file written by the CodeBlocks extra generator. This optionally restores logic that had been removed by commit v2.8.3~40^2 (CodeBlocks Generator: Do not omit files in the project file listing, 2010-10-05) in response to QTCREATORBUG-2250. Issue: #12110 Fixes: #17188
* | | | | | | Merge topic 'ranged-for'Brad King2017-09-1533-869/+606
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 63f6fd14 Meta: modernize old-fashioned loops to range-based `for` (CTest). Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1262
| * | | | | | | Meta: modernize old-fashioned loops to range-based `for` (CTest).Pavel Solodovnikov2017-09-1433-869/+606
| | |_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes done via `clang-tidy` with some manual fine-tuning for the variable naming and `auto` type deduction where appropriate.
* | | | | | | Merge topic 'update-kwsys'Brad King2017-09-152-66/+0
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f02eced5 Merge branch 'upstream-KWSys' into update-kwsys 38b8017f KWSys 2017-09-14 (d85b17e7) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1263
| * \ \ \ \ \ \ Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-09-142-66/+0
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * upstream-KWSys: KWSys 2017-09-14 (d85b17e7)
| | * | | | | | | KWSys 2017-09-14 (d85b17e7)KWSys Upstream2017-09-142-66/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit d85b17e7b4a9754dfb4c69906378c77626c16d24 (master). Upstream Shortlog ----------------- Brad King (1): c8cfe4e0 SystemTools: Drop SplitProgramFromArgs function
* | | | | | | | | Merge topic 'fphsa-fix-version-exact'Brad King2017-09-152-5/+5
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 5dc215e0 FPHSA: fix typo in comment a8f70b32 FPHSA: replace left-over VERSION by _FOUND_VERSION. 549366cb FPHSA: Add (failing) unit test when checking EXACT on full version number Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1259
| * | | | | | | | | FPHSA: fix typo in commentYves Frederix2017-09-141-2/+2
| | | | | | | | | |
| * | | | | | | | | FPHSA: replace left-over VERSION by _FOUND_VERSION.Yves Frederix2017-09-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was accidentally left out of commit aec27c152e (FPHSA: use more localized _FOUND_VERSION instead of VERSION, 2017-09-05). Fixes: #17281
| * | | | | | | | | FPHSA: Add (failing) unit test when checking EXACT on full version numberYves Frederix2017-09-141-2/+2
| | |_|/ / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test detects a regression introduced by commit aec27c152e (FPHSA: use more localized _FOUND_VERSION instead of VERSION, 2017-09-05).
* | | | | | | | | CMake Nightly Date StampKitware Robot2017-09-151-1/+1
| | | | | | | | |