summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Revise C++ coding style using clang-formatKitware Robot2016-05-1612-55/+63
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* Merge topic 'boost-component-headers'Brad King2016-05-161-4/+84
|\ | | | | | | | | c2e8d515 FindBoost: Add checks for component-specific headers
| * FindBoost: Add checks for component-specific headersRoger Leigh2016-05-161-4/+84
| | | | | | | | | | | | | | | | | | | | This supplements the existing library checks, to cater for the possibility that the libraries are present but the headers are not. This can happen when the Boost collections is split up into multiple packages and not all are installed, and will avoid the checks silently passing when the build would subsequently fail.
* | Merge topic 'boost-1.61'Brad King2016-05-161-1/+15
|\ \ | | | | | | | | | | | | 328eff90 FindBoost: Update dependencies for Boost 1.61
| * | FindBoost: Update dependencies for Boost 1.61Roger Leigh2016-05-131-1/+15
| | |
* | | Merge topic 'findpkgconfig-target'Brad King2016-05-161-6/+76
|\ \ \ | | | | | | | | | | | | | | | | df97b979 FindPkgConfig: optionally create imported target for the found libraries
| * | | FindPkgConfig: optionally create imported target for the found librariesRolf Eike Beer2016-05-141-6/+76
| |/ /
* | | Merge topic 'cpack-rpm-adding-dist-to-release-tag'Brad King2016-05-161-3/+24
|\ \ \ | | | | | | | | | | | | | | | | | | | | f5089cfc CPack/RPM adding dist to release tag test f7003a60 CPack/RPM release dist tag support
| * | | CPack/RPM release dist tag supportHarry Mallon2016-05-141-3/+24
| |/ / | | | | | | | | | | | | Some Linux distros require Release tag to be set to <ReleaseVersion><Dist>.
* | | Merge topic 'cpack-rpm-different-package-names'Brad King2016-05-161-3/+65
|\ \ \ | | | | | | | | | | | | | | | | 44ee2d71 CPack/RPM different package names
| * | | CPack/RPM different package namesDomen Vrankar2016-05-151-3/+65
| |/ / | | | | | | | | | | | | | | | | | | | | | Packagers may now set their own rpm package file names or request that rpmbuild tool chooses one for them. It also supports handing of situations where one spec file may produce multiple rpm packages.
* | | Merge topic 'cpack-deb-improvements'Brad King2016-05-161-32/+197
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4461e8bb CPack/Deb cpack-deb-improvements release notes 7e940bf7 CPack/Deb test changes due to breaking changes 3b648894 CPack/Deb package release number in file name 316dd613 CPack/Deb proper package file naming 271e03f0 CPack/Deb per-component package architecture 23baaf8d CPack/Deb inter package dependencies 3a55a0e7 CPack/Deb proper component packages file naming c7f388e7 CPack/Deb generation of postinst and postrm ldconfig files 2d589653 CPack/Deb generation of DEBIAN/shlibs control file
| * | CPack/Deb package release number in file nameDomen Vrankar2016-05-131-1/+17
| | | | | | | | | | | | | | | | | | Debian packages file naming format must contain revision number - package release number (breaks compatibility with previous versions)
| * | CPack/Deb proper package file namingDomen Vrankar2016-05-131-9/+8
| | | | | | | | | | | | | | | Proper Debian packages file naming for single package setup (breaks compatibility with previous versions)
| * | CPack/Deb per-component package architectureAlexander Smorkalov2016-05-131-1/+4
| | | | | | | | | | | | | | | | | | Allowed to set per-compoment Debian package architecture. Useful, if you distribute documentation (should have "all architecture").
| * | CPack/Deb inter package dependenciesAlexander Smorkalov2016-05-131-1/+17
| | | | | | | | | | | | | | | In multi-component setup dependencies between packages are set (breaking change)
| * | CPack/Deb proper component packages file namingAlexander Smorkalov2016-05-131-6/+23
| | | | | | | | | | | | | | | Proper Debian packages file naming for multi-component setup (breaks compatibility with previous versions)
| * | CPack/Deb generation of postinst and postrm ldconfig filesAlexander Smorkalov2016-05-131-0/+29
| | | | | | | | | | | | | | | | | | DEBIAN/postinst and DEBAIN/postrm files generation if the package installs libraries in ldconfig controlled location (/lib/, /usr/lib/)
| * | CPack/Deb generation of DEBIAN/shlibs control fileAlexander Smorkalov2016-05-131-27/+112
| | | | | | | | | | | | | | | DEBIAN/shlibs control file generation if the package contains libraries
* | | Merge topic 'fix-hdf5-component-search'Brad King2016-05-131-78/+204
|\ \ \ | | | | | | | | | | | | | | | | fdfb0c06 HDF5: Rework component searching to correctly find HL for all bindings
| * | | HDF5: Rework component searching to correctly find HL for all bindingsChuck Atkins2016-05-121-78/+204
| | | |
* | | | InstallRequiredSystemLibraries: Optionally install Windows UCRT (#16073)Brad King2016-05-121-0/+23
| | | |
* | | | InstallRequiredSystemLibraries: Fix ENV{ProgramFiles(x86)} referenceBrad King2016-05-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The fix in commit v3.1.0-rc1~544^2~5 (Windows: Avoid () in environment variable references, 2014-05-02) introduced a set() command in the middle of an argument list. Move it to before the find_path() call.
* | | | CMakeParseImplicitLinkInfo: Exclude pathcc ldfe lines (#16100)Michał Górny2016-05-111-1/+1
| |_|/ |/| | | | | | | | | | | | | | PathScale uses a wrapper around the linker. The "ldfe" invocation in the output is followed by a normal "ld" invocation. Exclude the former so we can reach and parse the latter correctly.
* | | Merge topic 'FindLua-homebrew'Brad King2016-05-101-0/+1
|\ \ \ | |/ / |/| | | | | | | | 25f34dea FindLua: Add library name for Lua 5.3 on homebrew
| * | FindLua: Add library name for Lua 5.3 on homebrewAnders Bakken2016-05-091-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Homebrew installs lua 5.3 like this: Cellar/lua53/5.3.2_2/lib/liblua.5.3.2.dylib Cellar/lua53/5.3.2_2/lib/liblua.5.3.dylib lib/liblua.5.3.2.dylib lib/liblua.5.3.dylib Add the `liblua.{$VERSION}` naming scheme to our searched names.
* | | Merge topic 'fix-hdf5-for-compiler-wrapers'Brad King2016-05-101-113/+272
|\ \ \ | |_|/ |/| | | | | | | | 00405af0 HDF5: Refactor the use of compiler wrappers
| * | HDF5: Refactor the use of compiler wrappersChuck Atkins2016-05-091-113/+272
| | | | | | | | | | | | | | | | | | | | | * Make work with HDF5 compiler wrappers as the primary compiler (Cray) * Accept options used by compiler wrappers instead of just seeding search parameters * Only search for libraries if the first 2 fail
* | | Remove `//------...` horizontal separator commentsBrad King2016-05-093-6/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Modern editors provide plenty of ways to visually separate functions. Drop the explicit comments that previously served this purpose. Use the following command to automate the change: $ git ls-files -z -- \ "*.c" "*.cc" "*.cpp" "*.cxx" "*.h" "*.hh" "*.hpp" "*.hxx" | egrep -z -v "^Source/cmCommandArgumentLexer\." | egrep -z -v "^Source/cmCommandArgumentParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmDependsJavaLexer\." | egrep -z -v "^Source/cmDependsJavaParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmExprLexer\." | egrep -z -v "^Source/cmExprParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmFortranLexer\." | egrep -z -v "^Source/cmFortranParser(\.y|\.cxx|Tokens\.h)" | egrep -z -v "^Source/cmListFileLexer\." | egrep -z -v "^Source/cm_sha2" | egrep -z -v "^Source/(kwsys|CursesDialog/form)/" | egrep -z -v "^Utilities/(KW|cm).*/" | xargs -0 sed -i '/^\(\/\/---*\|\/\*---*\*\/\)$/ {d;}' This avoids modifying third-party sources and generated sources.
* | Help clang-format wrap after braces on long initializer listsBrad King2016-05-061-1/+3
| | | | | | | | | | | | Add a long comment inside a few braced initializer lists in order to convince clang-format to break after the opening brace and format the list without indenting every value past the opening brace.
* | Merge topic 'clang-cl-showincludes'Brad King2016-05-041-2/+2
|\ \ | | | | | | | | | | | | 66de0866 Ninja: Fix clang-cl /showIncludes prefix detection
| * | Ninja: Fix clang-cl /showIncludes prefix detectionBrad King2016-05-031-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | We run MSVC-like compilers with the `/showIncludes` option and match the output to extract the corresponding message. Fix the matching to support compilers like `clang-cl` that print the message on the first line such that it is not preceded by a newline. LLVM-Issue: https://llvm.org/bugs/show_bug.cgi?id=27226
* | | Merge topic 'ExternalProject-git-recursive-init'Brad King2016-05-031-2/+2
|\ \ \ | | | | | | | | | | | | | | | | 79410eeb ExternalProject: Initialize Git submodules recursively and on update (#16083)
| * | | ExternalProject: Initialize Git submodules recursively and on update (#16083)Ilya Kulakov2016-05-031-2/+2
| |/ /
* | | Merge topic 'FindBoost-no-system-env-paths'Brad King2016-05-031-2/+2
|\ \ \ | | | | | | | | | | | | | | | | 5a9b2b3b FindBoost: Fix Boost_NO_SYSTEM_PATHS to not consider environment (#15702)
| * | | FindBoost: Fix Boost_NO_SYSTEM_PATHS to not consider environment (#15702)Brad King2016-05-021-2/+2
| |/ / | | | | | | | | | | | | | | | Previously we added only NO_CMAKE_SYSTEM_PATH to find command calls. Add NO_SYSTEM_ENVIRONMENT_PATH too so that paths found from system environment variables are not considered either.
* | | FindHDF5: Add another debug suffixFARBOS Arnaud2016-05-021-2/+2
|/ / | | | | | | | | HDF5 1.8.16 (and likely others) names its debug libraries with a `_debug` suffix intsead of `d`.
* | Merge topic 'clang-format-include-order'Brad King2016-05-022-2/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e1c77472 Format include directive blocks and ordering with clang-format 180538c7 Source: Stabilize include order 0e7bca92 Utilities/Release: Stabilize include order in WiX custom action eb817be0 Tests: Stabilize include order in MFC, VSXaml, and VSWinStorePhone eda313b4 Tests: Stabilize include order in StringFileTest 7110b754 CursesDialog: add missing cmState include d7a5f255 Modules: Remove unused CMakeTestWatcomVersion.c file
| * | 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).
* | | Features: Record features for VS 2015 Update 2Brad King2016-04-281-1/+4
|/ /
* | 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.