summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* CPack: enable all CMake policies for generator scriptsDomen Vrankar2017-12-092-69/+28
|
* Merge topic 'cuda_darwin_proper_install_names_flags'Brad King2017-12-081-0/+19
|\ | | | | | | | | | | | | ce3874b3 CUDA: Shared libraries on Darwin properly setup @rpath install_names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1570
| * CUDA: Shared libraries on Darwin properly setup @rpath install_namesRobert Maynard2017-12-071-0/+19
| | | | | | | | | | | | Shared libraries linked with CUDA now properly setup booth the correct install_name but also specify headerpad_max_install_names so that the names can be changed post build.
* | Merge topic 'cpack-rpm-check-executable-flags'Brad King2017-12-071-2/+73
|\ \ | | | | | | | | | | | | | | | | | | a2031d3a CPack/RPM: check executable flags for debuginfo packages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1565
| * | CPack/RPM: check executable flags for debuginfo packagesDomen Vrankar2017-12-061-2/+73
| | | | | | | | | | | | | | | Debuginfo packages can not be created from programs and shared libraries that do not have execute permissions.
* | | Merge topic 'externalproject_download_dir'Brad King2017-12-071-3/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b8b87489 ExternalProject: Support substituting <DOWNLOAD_DIR> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1537
| * | | ExternalProject: Support substituting <DOWNLOAD_DIR>Craig Scott2017-12-061-3/+4
| | | |
* | | | Merge topic 'FindOpenCL-amd-sdk'Brad King2017-12-071-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f313541a FindOpenCL: Add support for AMD OpenCL SDK Light Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1562
| * | | | FindOpenCL: Add support for AMD OpenCL SDK LightHarry Mallon2017-12-061-0/+3
| | |/ / | |/| |
* | | | Merge topic 'gtest-discovery-timeout'Brad King2017-12-072-4/+21
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | 935848a8 GoogleTest: Add test for missing test executable 29731d89 GoogleTest: Add timeout to discovery e99e3982 GoogleTest: Improve gtest_discover_tests messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1534
| * | | GoogleTest: Add timeout to discoveryMatthew Woehlke2017-12-062-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a TIMEOUT option to gtest_discover_tests. This provides a work-around in case a test goes out to lunch, rather than causing the build to simply hang. (Although this is still a problem with the user's project, hanging the build is not cool, especially in the case of automatically running CI builds. It is much preferred that the build should actively fail in this case, and it is trivially easy for us to implement that.)
| * | | GoogleTest: Improve gtest_discover_tests messagesMatthew Woehlke2017-11-301-3/+7
| | | | | | | | | | | | | | | | | | | | Adjust the formatting of error messages produced when test discovery goes wrong, in order to avoid spurious line breaking.
* | | | Merge topic 'findmpi-notfound-spam'Brad King2017-12-061-10/+16
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bde7513d FindMPI: Correct legacy variable handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1557
| * | | | FindMPI: Correct legacy variable handlingChristian Pfeiffer2017-12-051-10/+16
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a minor logic error, MPI_LIBRARY, MPI_EXTRA_LIBRARY and MPI_<LANG>_LIBRARIES hints are currently not correctly handled and discarded. Additionally, if either C or CXX aren't enabled, there subsequent calls to FindMPI will cause cache variables of the sort "MPI_MPI_EXTRA_LIBRARY-NOTFOUND" to appear due to an error in the compatibility handling. (Doesn't affect functionality)
* | | | Merge topic 'findmpi-found-cond'Brad King2017-12-061-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2047eb36 FindMPI: Fix multiple configure runs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1556
| * | | | FindMPI: Fix multiple configure runsChristian Pfeiffer2017-12-051-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to a erroneous logical dependency on a temporary variable, FindMPI would depend its FOUND status on the set of flags needed to support compiler-implicit MPI support after the first configure run. This behavior is especially causing a misreported NOT FOUND status after the first run on MPI implementations without MPI compiler like MS-MPI or MPICH2 on Windows.
* | | | Merge topic 'pragma-once'Brad King2017-12-0421-3/+36
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4d611868 Check*: Added include guards Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1327
| * | | | Check*: Added include guardsCristian Adam2017-12-0121-3/+36
| | | | |
* | | | | Merge topic 'CMakeFindBinUtils-improve-switch'Brad King2017-11-307-14/+12
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | acb4cb95 CMakeFindBinUtils: Improve switch between MSVC- and GNU-like tools Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1533
| * | | | | CMakeFindBinUtils: Improve switch between MSVC- and GNU-like toolsBrad King2017-11-287-14/+12
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The switch was not considering some languages, such as `ASM`. Instead of memorizing the list of languages in the condition, use a language specified by the includer. Fixes: #17510
* | | | | Merge topic 'findcuda-separable-compilation-fix'Brad King2017-11-301-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3726ded1 FindCUDA: Add cublas device library to separable compilation Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Robert Maynard <robert.maynard@kitware.com> Merge-request: !1446
| * | | | | FindCUDA: Add cublas device library to separable compilationJamil Appa2017-11-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add cublas libraries to separable compilation device link line to resolve missing symbols when using cublas device library.
* | | | | | Merge topic 'findiconv-module'Brad King2017-11-301-0/+133
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 95646591 FindIconv: Add the FindIconv module. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1530
| * | | | | | FindIconv: Add the FindIconv module.Christian Pfeiffer2017-11-291-0/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This module provides abstraction over the various ways POSIX platforms handle the iconv calls defined in POSIX.1-2001 and later versions.
* | | | | | | Merge topic 'CheckIncludeFiles-fix-src-name'Brad King2017-11-301-2/+2
|\ \ \ \ \ \ \ | |_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3eee3301 CheckIncludeFiles: Fix name of source file used for check Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1538
| * | | | | | CheckIncludeFiles: Fix name of source file used for checkBrad King2017-11-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 7669695a74 (CheckIncludeFiles: extend to allow a LANGUAGE argument, 2017-11-08) the file name used for the check was accidentally left as `${var}.c`, where `var` is not a variable we define. It was passing tests by accidentally using just `.c` as the file name, but can break in real projects that may leave `var` defined to something else. The reference was taken from similar code in CheckTypeSize where the variable names are different. Fix our reference to be `${VARIABLE}`.
* | | | | | | Merge topic 'CodeBlocks-custom-compiler-id'Brad King2017-11-291-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e04f1d1b CodeBlocks: add option for the CB compiler ID Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1512
| * | | | | | | CodeBlocks: add option for the CB compiler IDMelven Roehrig-Zoellner2017-11-271-0/+3
| | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CodeBlocks uses his own compiler ID string which may differ from CMAKE_<LANG>_COMPILER_ID. In particular CodeBlocks supports a large number of different compiler configurations (with different IDs) This commit adds a cache variable "CMAKE_CODEBLOCKS_COMPILER_ID", so the user might adjust it when needed.
* | | | | | | Merge topic 'clang-cl-fix'Brad King2017-11-291-3/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f969f1a9 Clang: Do not mistake clang-cl 6.0 for GNU-like clang Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1522
| * | | | | | | Clang: Do not mistake clang-cl 6.0 for GNU-like clangİsmail Dönmez2017-11-281-3/+3
| | |_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The check added by commit v3.10.0-rc2~2^2 (Clang: Diagnose unsupported GNU-like clang targeting MSVC ABI, 2017-10-10) is incorrectly detecting clang-cl 6.0 as GNU-like. Currently cmake is testing if the clang compiler accepts `--version` to see if it accepts GNU style flags. However, with the latest llvm snapshot this also works for clang-cl: > clang-cl --version clang version 6.0.0 (trunk) Target: x86_64-pc-windows-msvc Thread model: posix InstalledDir: C:\Program Files\LLVM\bin So instead we should use the `/?` flag which fails with clang but works with clang-cl: > clang-cl /? &> /dev/null; echo $? 0 > clang /? &> /dev/null; echo $? 1 Fixes: #17518
* | | | | | | Merge topic 'CheckIncludeFiles-language-CXX'Brad King2017-11-291-5/+35
|\ \ \ \ \ \ \ | | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b31d5e1d CheckIncludeFiles: improve warning for missing argument 1f1c2a9f CheckIncludeFiles: clean up documentation of new features c8609992 Help: Add notes for topic 'CheckIncludeFiles-language-CXX' ea1bb902 CheckIncludeFiles: add unit tests 7669695a CheckIncludeFiles: extend to allow a LANGUAGE argument Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1464
| * | | | | | CheckIncludeFiles: improve warning for missing argumentDavid Adam2017-11-241-3/+5
| | | | | | |
| * | | | | | CheckIncludeFiles: clean up documentation of new featuresDavid Adam2017-11-241-3/+5
| | | | | | |
| * | | | | | CheckIncludeFiles: extend to allow a LANGUAGE argumentDavid Adam2017-11-111-3/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Allows CheckIncludeFiles to work for C or C++.
* | | | | | | Merge topic 'win-clang-debug'Brad King2017-11-291-5/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 458c589f FindBoost: Add Windows ABI tag for Clang debug 00e39a4a FindBoost: Use CMAKE_CXX_COMPILER_ID for Intel compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1529
| * | | | | | | FindBoost: Add Windows ABI tag for Clang debugRoger Leigh2017-11-271-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to Walter Pearce for this suggestion. Fixes: #17505
| * | | | | | | FindBoost: Use CMAKE_CXX_COMPILER_ID for Intel compilerRoger Leigh2017-11-271-5/+2
| | |_|_|_|/ / | |/| | | | |
* | | | | | | Merge topic 'cuda-implicit-include-dirs'Brad King2017-11-291-0/+3
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2f72573a CUDA: Treat /usr/include as an implicit include directory Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1528
| * | | | | | | CUDA: Treat /usr/include as an implicit include directoryBrad King2017-11-271-0/+3
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already do this for C and C++. Fixes: #17512
* | | | | | | GNUInstallDirs: Update link to 64-bit ABI documentsBrad King2017-11-271-1/+1
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | Suggested-by: Chris Coutinho <chrisbcoutinho@gmail.com> Fixes: #17503
* | | | | | Merge topic 'hardcoded-path-removal'Brad King2017-11-2725-273/+93
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a62d50ec Modules: Replace coded PATHS with PATH_SUFFIXES fd56d6a8 FindMPEG,2: Update to current libmpeg2 behavior 5f382cd8 FindPike: Update names and paths 6720807d FindAVIFile: Replace PATHS with updated suffixes f88ef9a9 Modules: Remove paths set as global Unix prefixes Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1502
| * | | | | | Modules: Replace coded PATHS with PATH_SUFFIXESChristian Pfeiffer2017-11-209-109/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some modules assume that `/usr` and `/usr/local` are the only `CMAKE_PREFIX_PATH` entries and explicitly enumerate all paths instead of using `PATH_SUFFIXES` and relying on the dynamic set of prefix paths. This commit attempts to rectify that behavior.
| * | | | | | FindMPEG,2: Update to current libmpeg2 behaviorChristian Pfeiffer2017-11-202-23/+17
| | | | | | |
| * | | | | | FindPike: Update names and pathsChristian Pfeiffer2017-11-201-6/+3
| | | | | | |
| * | | | | | FindAVIFile: Replace PATHS with updated suffixesChristian Pfeiffer2017-11-201-8/+2
| | | | | | |
| * | | | | | Modules: Remove paths set as global Unix prefixesChristian Pfeiffer2017-11-2012-127/+7
| | |_|/ / / | |/| | | | | | | | | | | | | | | | | | | | | | This commit removes hardcoded paths that are already given in the platform files or in `UnixPath` on a global level.
* | | | | | Merge topic 'WriteBasicConfigVersionFile_SameMinorVersion'Craig Scott2017-11-223-6/+58
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d18ff3a5 WriteBasicConfigVersionFile: Fix messages in ExactVersion tests 16a93de0 WriteBasicConfigVersionFile: Add SameMinorVersion COMPATIBILITY option Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Claudio <claudio.fantacci@gmail.com> Merge-request: !1507
| * | | | | | WriteBasicConfigVersionFile: Add SameMinorVersion COMPATIBILITY optionDaniele E. Domenichelli2017-11-213-6/+58
| |/ / / / /
* | | | | | Merge topic 'gtest-fix-discovery'Brad King2017-11-211-2/+25
|\ \ \ \ \ \ | | |_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | 70f9f62d GoogleTest: Fix multiple discovery on same target Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1510
| * | | | | GoogleTest: Fix multiple discovery on same targetMatthew Woehlke2017-11-211-2/+25
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to the documentation, tests can be discovered for a target multiple times by using a different prefix and/or suffix to ensure name uniqueness. However, while this worked for gtest_add_tests, it did not work with gtest_discover_tests because the generated file that sets up the tests was named based only on the target name, and so subsequent discovery from the same target would clobber earlier discovery. Fix this by introducing a counter that records how many times discovery has been used on a target, and use this to generate unique names of the generated test list files.