summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Format include directive blocks and ordering with clang-formatBrad King2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sort include directives within each block (separated by a blank line) in lexicographic order (except to prioritize `sys/types.h` first). First run `clang-format` with the config file: --- SortIncludes: false ... Commit the result temporarily. Then run `clang-format` again with: --- SortIncludes: true IncludeCategories: - Regex: 'sys/types.h' Priority: -1 ... Commit the result temporarily. Start a new branch and cherry-pick the second commit. Manually resolve conflicts to preserve indentation of re-ordered includes. This cleans up the include ordering without changing any other style. Use the following command to run `clang-format`: $ git ls-files -z -- \ '*.c' '*.cc' '*.cpp' '*.cxx' '*.h' '*.hh' '*.hpp' '*.hxx' | egrep -z -v '(Lexer|Parser|ParserHelper)\.' | egrep -z -v '^Source/cm_sha2' | egrep -z -v '^Source/(kwsys|CursesDialog/form)/' | egrep -z -v '^Utilities/(KW|cm).*/' | egrep -z -v '^Tests/Module/GenerateExportHeader' | egrep -z -v '^Tests/RunCMake/CommandLine/cmake_depends/test_UTF-16LE.h' | xargs -0 clang-format -i This selects source files that do not come from a third-party. Inspired-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
* Modules: Remove unused CMakeTestWatcomVersion.c fileBrad King2016-04-291-1/+0
| | | | | This file has not been used since commit v2.8.10~218^2~7^2 (Watcom: Simplify compiler version detection, 2012-08-13).
* Merge topic 'intel-compiler-features'Brad King2016-04-286-3/+247
|\ | | | | | | | | | | | | | | | | | | | | 21b1fa5c Help: Add notes for topic 'intel-compiler-features' 9addce99 Features: Record standard flags for Intel C/C++ on Windows 15a6c950 WCDH: Add Intel to list of supported compilers 36f32ede Features: Record standards and features for Intel C on UNIX d028b948 Features: Specify minimum version Intel C++ 12.1 be910f00 Features: Record standards and features for Intel C++ on UNIX 7f401ae4 Features: Detect C default dialect on MSVC-like compilers
| * Features: Record standard flags for Intel C/C++ on WindowsBrad King2016-04-282-32/+44
| | | | | | | | | | Select the `-std=` or `-Qstd=` flag based on whether Intel is GNU-like or MSVC-like, respectively.
| * WCDH: Add Intel to list of supported compilersRobert Maynard2016-04-281-2/+3
| |
| * Features: Record standards and features for Intel C on UNIXRobert Maynard2016-04-282-0/+73
| | | | | | | | | | Record features for Intel C 12.1 and above. Skip this for now on Windows (where Intel C simulates MSVC).
| * Features: Specify minimum version Intel C++ 12.1Robert Maynard2016-04-281-22/+18
| | | | | | | | | | | | Versions below 12.1 do not provide enough information to properly detect if compiling with c++98 or c++0x enabled so remove them from the supported list.
| * Features: Record standards and features for Intel C++ on UNIXLevi Morrison2016-04-282-0/+158
| | | | | | | | Skip this for now on Windows (where Intel C++ simulates MSVC).
| * Features: Detect C default dialect on MSVC-like compilersBrad King2016-04-281-1/+5
| | | | | | | | | | | | These compilers default to C 90 but do not define __STDC__. While MSVC itself has no option to change the dialect, compilers that document compatibility with MSVC and define _MSC_VER may (e.g. Intel).
* | ExternalProject: Add option to perform a shallow Git clone (#15291)Brad King2016-04-271-3/+20
| | | | | | | | Inspired-by: Ilya Kulakov <kulakov.ilya@gmail.com>
* | FindBISON: Fix BISON_TARGET macro for special characters in path (#16072)Brad King2016-04-201-4/+4
| | | | | | | | | | Use the VERBATIM option to add_custom_command so that the command is escaped correctly.
* | FindFLEX: Fix FLEX_TARGET macro for special characters in path (#16072)Brad King2016-04-201-2/+2
| | | | | | | | | | Use the VERBATIM option to add_custom_command so that the command is escaped correctly.
* | Merge topic 'coverage_collect_delete'Brad King2016-04-201-2/+6
|\ \ | | | | | | | | | | | | 5de122df CTestCoverageCollectGCOV: improve DELETE option
| * | CTestCoverageCollectGCOV: improve DELETE optionZack Galbreath2016-04-191-2/+6
| |/ | | | | | | | | | | | | | | | | | | | | | | | | The DELETE option to ctest_coverage_collect_gcov now properly removes all the .gcov files that were created by this function. Previously it left behind any files that were excluded by CTEST_CUSTOM_COVERAGE_EXCLUDE. This option now also deletes the following files/directory that are created by ctest_coverage_collect_gcov: data.json coverage_file_list.txt the uncovered/ directory
* | Merge topic 'boost-import-default'Brad King2016-04-201-2/+2
|\ \ | | | | | | | | | | | | 2c1b720e FindBoost: Define Boost::boost for all boost versions
| * | FindBoost: Define Boost::boost for all boost versionsRoger Leigh2016-04-191-2/+2
| |/
* | BundleUtilities: Add optional parameter to ignore specified filesRoman Wüger2016-04-191-37/+115
|/
* Merge topic 'FindMPI-intel-compiler'Brad King2016-04-181-2/+13
|\ | | | | | | | | | | 2a99fae1 FindMPI: Recognize `.lib` file names for specification of link libraries c4417b09 FindMPI: Recognize /LIBPATH for specification of linker paths.
| * FindMPI: Recognize `.lib` file names for specification of link librariesDominic Meiser2016-04-151-0/+11
| | | | | | | | | | The Intel MPI compiler wrappers link against static MPI libraries simply by listing the libraries (no `-l`).
| * FindMPI: Recognize /LIBPATH for specification of linker paths.Dominic Meiser2016-04-151-2/+2
| | | | | | | | The Intel MPI wrappers use this form of -L to specify library locations.
* | FindGit: Add new 'GitHub for Windows' user directoryFrank Park2016-04-151-2/+4
|/ | | | | | | | | | | | | GitHub for Windows now installs in $ENV{LOCALAPPDATA}/Github/PortableGit*/cmd instead of $ENV{LOCALAPPDATA}/Github/PortableGit*/bin Search the new location first but keep the old one in case people have older versions installed.
* FindMPI: Improve documentation formattingChristoph Grüninger2016-04-111-12/+15
|
* Merge topic 'GetPrerequisites-more-dumpbin-paths'Brad King2016-04-111-0/+11
|\ | | | | | | | | | | a1c40291 GetPrerequisites: Look for VS tools using environment variables c79f88b0 GetPrerequisites: add path of VS 10,11,12,14 in order to find dumpbin.exe
| * GetPrerequisites: Look for VS tools using environment variablesBrad King2016-04-081-0/+7
| | | | | | | | | | | | The `VS*COMNTOOLS` environment variables specify locations of VS tools and are set during the VS installation. Use them in addition to the hard-coded default install locations.
| * GetPrerequisites: add path of VS 10,11,12,14 in order to find dumpbin.exeFARBOS Arnaud2016-04-081-0/+4
| |
* | MSVC: Drop space in `/DNDEBUG` flag for consistency (#16052)Brad King2016-04-072-9/+9
|/ | | | | | | | We define `NDEBUG` without a space after the `-D` option for most compilers. Remove the space for MSVC (and Intel Fortran) for consistency. The MS compiler technically does not document that the `-D` argument may be separated from its value, though every version to date supports it.
* Merge topic 'branch_coverage_working_dir'Brad King2016-04-071-2/+2
|\ | | | | | | | | c5ff34cc CTestCoverageCollectGCOV: specify base dir for GLOB_RECURSE
| * CTestCoverageCollectGCOV: specify base dir for GLOB_RECURSEZack Galbreath2016-04-041-2/+2
| | | | | | | | | | | | Consistently glob for .gcda files in the binary directory. Previously the behavior of this function depended on the current working directory that it was called from.
* | Merge topic 'branch_coverage_glob'Brad King2016-04-071-8/+70
|\ \ | | | | | | | | | | | | | | | 8ea1b0df CTestCoverageCollectGCOV: Improve documentation 425d7646 CTestCoverageCollectGCOV: Honor CTEST_EXTRA_COVERAGE_GLOB
| * | CTestCoverageCollectGCOV: Improve documentationZack Galbreath2016-04-071-8/+13
| | | | | | | | | | | | Clean up prose and mention support for CTEST_EXTRA_COVERAGE_GLOB.
| * | CTestCoverageCollectGCOV: Honor CTEST_EXTRA_COVERAGE_GLOBZack Galbreath2016-04-071-0/+57
| | | | | | | | | | | | | | | | | | | | | Teach CTestCoverageCollectGCOV to honor the CTEST_EXTRA_COVERAGE_GLOB variable. When this variable is set, this module will glob for matching source files that were not covered and include them in the resulting tar file.
* | | Merge topic 'UseJava-cmake-command'Brad King2016-04-071-1/+1
|\ \ \ | | | | | | | | | | | | | | | | fa382ae8 UseJava: use CMAKE_COMMAND instead of direct cmake call
| * | | UseJava: use CMAKE_COMMAND instead of direct cmake callBrad King2016-04-061-1/+1
| | | | | | | | | | | | | | | | Author: dancing-leaves <dancing-leaves@users.noreply.github.com>
* | | | Merge topic 'ExternalProject-TLS_VERIFY-fixes'Brad King2016-04-071-10/+16
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | 4d8c988c ExternalProject: Fix file download script with CMAKE_TLS_{VERIFY,CAINFO} 23a71e4e ExternalProject: Tell Git not to verify certs only if TLS_VERIFY is OFF
| * | | ExternalProject: Fix file download script with CMAKE_TLS_{VERIFY,CAINFO}Brad King2016-04-061-6/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid generating incorrect code such as set(CMAKE_TLS_VERIFY set(CMAKE_TLS_VERIFY 1)) when one of these variables is set in the calling project.
| * | | ExternalProject: Tell Git not to verify certs only if TLS_VERIFY is OFFBrad King2016-04-061-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 272779ce (ExternalProject: Allow TLS_VERIFY for git clones, 2016-04-01) we pass the `-c http.sslVerify=false` option to `git clone` even if no explicit `TLS_VERIFY` option was set. This changes behavior because we used to use the default Git behavior by default. Revise the logic to preserve the old default behavior by passing the new option only if `TLS_VERIFY` was explicitly passed as `OFF`. While at it, also honor `CMAKE_TLS_VERIFY` if the explicit `TLS_VERIFY` option is not given.
* | | | Merge topic 'FindOpenSSL-names-per-dir'Brad King2016-04-061-0/+10
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | b1484403 FindOpenSSL: Prefer libs early in search path regardless of name (#15887)
| * | | | FindOpenSSL: Prefer libs early in search path regardless of name (#15887)Hannes Mezger2016-04-051-0/+10
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Add NAMES_PER_DIR to all find_library invocations so that we consider all possible names in each search directory before moving on to the next directory. Otherwise we may not find self-built libraries first even if they appear early in the search path.
* | | | Merge topic 'mingw-w64-Fortran-platform'Brad King2016-04-061-6/+20
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 8c4f100a Fortran: Fix platform id detection on mingw-w64 66fa6143 CMakeDetermineFortranCompiler: Modernize conventions
| * | | | Fortran: Fix platform id detection on mingw-w64Melven Roehrig-Zoellner2016-04-051-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On mingw-w64 the GNU Fortran compiler does not define `__MINGW32__` or any similar indicator. Fix `CMAKE_Fortran_PLATFORM_ID` detection in this case by falling back to preprocessing a `.c` source file even when the compiler id is already detected.
| * | | | CMakeDetermineFortranCompiler: Modernize conventionsMelven Roehrig-Zoellner2016-04-051-6/+5
| | | | | | | | | | | | | | | | | | | | Suggested-by: Ben Boeckel <ben.boeckel@kitware.com>
* | | | | Merge topic 'FindGSL-doc-typo'Brad King2016-04-061-1/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 2308764b FindGSL: Fix typo in documentation
| * | | | | FindGSL: Fix typo in documentationPierrick Koch2016-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | s/GSL_CLBAS_LIBRARY/GSL_CBLAS_LIBRARY/
* | | | | | Merge topic 'find-blas-lapack-Fortran-only'Brad King2016-04-062-14/+18
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | 1694112d Find{BLAS,LAPACK}: Fix when used in pure Fortran projects (#16039)
| * | | | | Find{BLAS,LAPACK}: Fix when used in pure Fortran projects (#16039)Melven Roehrig-Zoellner2016-04-052-14/+18
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Use `CMAKE_<LANG>_COMPILER_LOADED` to detect enabled languages because `if( _LANGUAGES_ MATCHES C )` is always true on Windows as the RC language is activated automatically and matches C.
* | | | | Merge topic 'ctest-run-submodule-sync'Brad King2016-04-051-0/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | c18d91ad Help: add release notes for topic 'ctest-run-submodule-sync' 7f560743 cmCTestGIT: run `git submodule sync` before updating submodules 06b310b5 cmCTestGIT: add an option to initialize submodules on update 56c1ea40 cmCTestGIT: fix git version references
| * | | | cmCTestGIT: add an option to initialize submodules on updateBen Boeckel2016-04-011-0/+1
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | Currently, CTest will not initialize any submodules within the already checked out source tree. Add an option to do so. The use case for not doing so is that some submodules may not be necessary for the current test and keeping network usage down may be important.
* | | | ExternalProject: Allow TLS_VERIFY for git clonesSamir Benmendil2016-04-011-6/+17
| |/ / |/| | | | | | | | | | | Use the git config `http.sslVerify=false` to disable strict ssl for git commands.
* | | Merge topic 'cpack-rpm-external-symlink-handling'Brad King2016-04-011-7/+23
|\ \ \ | | | | | | | | | | | | | | | | eae4eef0 CPack/RPM external symlink handling
| * | | CPack/RPM external symlink handlingDomen Vrankar2016-04-011-7/+23
| |/ / | | | | | | | | | | | | | | | | | | | | | Symbolic links that point to external location no longer cause cmake to fail with string out of bounds error but are instead packaged as non relocatable symlinks and print out a warning message.