summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix trivial typos in textluzpaz2017-11-0328-37/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some are user facing. Found using codespell -q 3 --skip="./Utilities" -I .cmake-whitelist.txt` whereby the whitelist contained: ans dum helpfull emmited emmitted buil iff isnt nto ot pathes substract te todays upto whitespaces
* Merge topic 'mingw-clang-c-compile-features'Brad King2017-11-011-1/+1
|\ | | | | | | | | | | | | f86879a0 Record C compile features flags for MinGW Clang on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1435
| * Record C compile features flags for MinGW Clang on WindowsBrad King2017-11-011-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was done for C++ by commit v3.5.0-rc1~69^2 (Record compile features for MinGW Clang on Windows, 2016-01-11). Make the same change for C. The `UNIX` condition on Clang C compiler features was already dropped by refactoring in commit v3.9.0-rc1~17^2~4 (Compilers: Port to use default cmake_record_lang_compile_features macros, 2017-05-10). Our documentation already claims support for this combination. This was simply an oversight when support was added for MinGW Clang C++. Issue: #15897 Issue: #15943
* | Merge topic 'freetype-windows'Brad King2017-10-301-0/+3
|\ \ | | | | | | | | | | | | | | | | | | 3d42c3ed FindFreetype: Normalize slashes when legacy FREETYPE_LIBRARY is specified Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1416
| * | FindFreetype: Normalize slashes when legacy FREETYPE_LIBRARY is specifiedMark Salisbury2017-10-271-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | On Windows if you specify the library path using a regular Windows path with backslashes, FindFreetype announces that it found the library, but the value is reported with backslashes instead of forward slashes. This breaks assumptions elsewhere in CMake. Convert slashes explicitly since we have no `find_library` call for `FREETYPE_LIBRARY`.
* | | CPack/Deb: handle shlibs file generation when SOVERSION set to 0Domen Vrankar2017-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Setting CPACK_DEBIAN_PACKAGE_GENERATE_SHLIBS did not auto generate shlibs control file when .so version of the library was set to 0. Fixes #17318
* | | Merge topic 'findICU_update'Brad King2017-10-271-1/+20
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 20696a53 FindICU: Add support for static libraries on Windows 606ece67 FindICU: Search in 'sbin' directories for icu tools Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1396
| * | FindICU: Add support for static libraries on WindowsFrancois Budin2017-10-251-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | When compiling ICU statically on Windows with Visual Studio, the library file names are prefixed with 's' [1]. [1] http://source.icu-project.org/repos/icu/trunk/icu4c/source/icudefs.mk.in `STATIC_PREFIX_WHEN_USED = s`
| * | FindICU: Search in 'sbin' directories for icu toolsFrancois Budin2017-10-251-1/+1
| | | | | | | | | | | | | | | | | | | | | On Ubuntu, several binaries that FindICU.cmake searches for are installed in 'sbin' instead of 'bin' [1]. [1] https://packages.ubuntu.com/xenial/amd64/icu-devtools/filelist
* | | Merge topic 'clang-cl-TP'Brad King2017-10-262-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7077a554 Clang: Use -TP flag for C++ sources with clang-cl Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1407
| * | | Clang: Use -TP flag for C++ sources with clang-clBrad King2017-10-252-0/+2
| | |/ | |/| | | | | | | | | | | | | We do this for `cl`, so we should do it for `clang-cl`. Fixes: #17394
* | | Merge topic 'flang-windows'Brad King2017-10-251-0/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | b2c6c357 Flang: Add partial support on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1404
| * | | Flang: Add partial support on WindowsIsuru Fernando2017-10-241-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add minimal changes needed to help Flang itself build on Windows using CMake. Additional work will be required for full support. Issue: #17384
* | | | Merge topic 'omp-oacc-werror-return-type'Brad King2017-10-252-3/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 15da0ba3 Find{OpenMP,OpenACC}: Fix detection with -Werror=return-type Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1406
| * | | | Find{OpenMP,OpenACC}: Fix detection with -Werror=return-typeChristian Pfeiffer2017-10-242-3/+11
| | |/ / | |/| | | | | | | | | | | | | | | | | | Explicitly return a value from `main` in our test sources. Fixes: #17391
* | | | Merge topic 'findmpi-core-count'Brad King2017-10-251-7/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1610f757 FindMPI: Use physical cores for MPIEXEC_MAX_NUMPROCS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1405
| * | | | FindMPI: Use physical cores for MPIEXEC_MAX_NUMPROCSChristian Pfeiffer2017-10-241-7/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.9.0-rc1~224^2~1 (FindMPI: MPIEXEC handling improvements, 2017-04-21) the `ProcessorCount` module is being used to initialize `MPIEXEC_MAX_NUMPROCS`. However, this leads to the logical cores being counted rather than the physical ones, and some MPI implementations like OpenMPI will error if mpiexec is called with that number. Switch it to the number of physical cores using `cmake_host_system_information`. This ensures that if `MPIEXEC_MAX_NUMPROCS` is being used to set up MPI tests with CTest or similar that the tests won't spuriously fail due to OpenMPI refusing to start the application.
* | | | Merge topic 'FindCUDA-doc-format'Brad King2017-10-241-18/+19
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 17ddf126 FindCUDA: Improve documentation formatting markup Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1403
| * | | | FindCUDA: Improve documentation formatting markupHenry Schreiner2017-10-231-18/+19
| | |_|/ | |/| |
* | | | Merge topic 'FindOpenCL-more-versions'Brad King2017-10-241-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 55f7930f FindOpenCL: Add detection of OpenCL 2.1 and 2.2 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1398
| * | | | FindOpenCL: Add detection of OpenCL 2.1 and 2.2Henry Schreiner2017-10-231-1/+1
| | |/ / | |/| |
* | | | Merge topic 'gnuid-cmp54-fix'Brad King2017-10-241-0/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a8be8b1b GNUInstallDirs: Enable CMP0054 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1400
| * | | | GNUInstallDirs: Enable CMP0054Christian Pfeiffer2017-10-231-0/+5
| |/ / / | | | | | | | | | | | | Fixes: #17381
* | | | Merge topic 'generator-instance'Brad King2017-10-242-0/+21
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9ffb3538 VS: Select and save a VS 2017 instance persistently 17edfa41 cmVSSetupHelper: Add option to specify an instance a19b8113 CheckLanguage: Pass generator instance into check 6b3cd64d ExternalProject: Propagate the generator instance 314613d1 Add infrastructure for generators to select a build tool instance Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1394
| * | | CheckLanguage: Pass generator instance into checkBrad King2017-10-191-0/+6
| | | | | | | | | | | | | | | | | | | | Otherwise we do not check for support for the language with the same generator instance as the caller.
| * | | ExternalProject: Propagate the generator instanceBrad King2017-10-191-0/+15
| | |/ | |/| | | | | | | | | | | | | | | | | | | When the `CMAKE_GENERATOR` option is given to `ExternalProject_Add`, look also for option `CMAKE_GENERATOR_INSTANCE` to pass on to cmake as a cache definition. When no `CMAKE_GENERATOR` option is given explicitly then use the current project's `CMAKE_GENERATOR_INSTANCE` (since we already use its CMAKE_GENERATOR).
* | | Merge topic 'flang-remove-boundscheck'Brad King2017-10-231-2/+0
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 3aeff21d Flang: Remove unsupported fbounds-check flag Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1393
| * | Flang: Remove unsupported fbounds-check flagChristian Pfeiffer2017-10-191-2/+0
| |/ | | | | | | | | The Flang compiler neither supports nor documents -fbounds-check leading to -Wunused-command-line-argument warnings with the default Debug flags.
* | Merge topic 'curl_netrc_options'Brad King2017-10-192-2/+46
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d45aa38a Add dev notes for topic 'curl_netrc_options' 60c272b6 ExternalProject: Add support for NETRC and NETRC_FILE suboption 754e39dd Add testcases for file(DOWNLOAD|UPLOAD) netrc options 5d67e902 file(DOWNLOAD|UPLOAD): Add 'NETRC' and 'NETRC_FILE' suboption Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !1376
| * | ExternalProject: Add support for NETRC and NETRC_FILE suboptionShane Parris2017-10-182-2/+46
| | |
* | | Merge topic 'ti-compiler-depfile-support'Brad King2017-10-192-0/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ad9327d9 Compiler/TI: Add support for depfile generation for Ninja Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1389
| * | | Compiler/TI: Add support for depfile generation for NinjaNico Müller2017-10-182-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | TI C/C++ compiler are now able to generate dependency files during compilation. Fixes: #17360
* | | | Merge topic 'cmake-open'Brad King2017-10-181-0/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 96d642c7 cmake-gui: Use cmake::Open to open generated project 5de37a4a cmake: Add --open option for IDE generators Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ruslan Baratov <ruslan_baratov@yahoo.com> Merge-request: !1337
| * | | | cmake: Add --open option for IDE generatorsGregor Jasny2017-10-131-0/+23
| | | | |
* | | | | Merge topic 'module-fetchcontent'Brad King2017-10-182-0/+935
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1e56634f FetchContent: Add tests 60e74d2f FetchContent: New module for populating content at configure time Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1306
| * | | | | FetchContent: New module for populating content at configure timeCraig Scott2017-10-162-0/+935
| | |_|_|/ | |/| | |
* | | | | Merge topic 'findopenmp-lib-paths'Brad King2017-10-181-7/+21
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f4cc7109 FindOpenMP: Improve OMP libraries search Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1385
| * | | | | FindOpenMP: Improve OMP libraries searchChristian Pfeiffer2017-10-171-7/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This supports libraries given as full path and filters libraries given in CMAKE_<LANG>_STANDARD_LIBRARIES. Fixes: #17351
* | | | | | Merge topic 'Linux-CUDA-OpenCL'Brad King2017-10-171-1/+4
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 060fd233 FindOpenCL: Add support for CUDA OpenCL on Linux Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1387
| * | | | | FindOpenCL: Add support for CUDA OpenCL on LinuxTakenori Yamamoto2017-10-151-1/+4
| | |_|/ / | |/| | | | | | | | | | | | | When setting CUDA_PATH, the include directory ($CUDA_PATH/include) was found, but libOpenCL.so was not found. This patch resloved the issue.
* | | | | Merge topic 'UseJava-add_jar-split-build-and-output-dirs'Brad King2017-10-161-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 48dcb2f0 UseJava: add_jar OUTPUT_DIR option used only for jar generation. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1380
| * | | | | UseJava: add_jar OUTPUT_DIR option used only for jar generation.Marc Chevrier2017-10-121-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Build artifacts go to CMAKE_CURRENT_BINARY_DIR subdirectory in all cases. Fixes: #17341
* | | | | | Merge topic 'cpack-wix-cygwin'Brad King2017-10-161-1/+1
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e1409101 cpack wix: support WiX generator on Cygwin e258fe03 cpack wix: fix path error on cygwin Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1367
| * | | | | cpack wix: fix path error on cygwinStephen Sorley2017-10-131-1/+1
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Under Cygwin, file(TO_CMAKE_PATH...) outputs invalid paths when given a Windows path as input (the colon after the drive letter gets replaced by a semicolon). As a workaround, just use a string replace to change the slashes instead.
* | | | | Merge topic 'FindPythonLibs-names-per-dir'Brad King2017-10-121-4/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 192ab741 FindPythonLibs: Allow find_library to search paths from system environment 3976a106 FindPythonLibs: Prefer libs early in search path regardless of name Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1378
| * | | | | FindPythonLibs: Allow find_library to search paths from system environmentBrad King2017-10-111-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop the `NO_SYSTEM_ENVIRONMENT_PATH` option from our `find_library` calls. No other find modules do this. Also, since commit v3.3.0-rc1~430^2 (Teach find_(library|file|path) to get prefixes from PATH, 2015-02-18) we always search the `lib` directory of each prefix before the `bin` directory and so should prefer the non-`.dll` name. Issue: #17336
| * | | | | FindPythonLibs: Prefer libs early in search path regardless of nameBrad King2017-10-111-0/+3
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. This helps find the package that appears earliest in the search path regardless of how it names its libraries. Fixes: #17336
* | | | | Merge topic 'FindXMLRPC-no-includes'Brad King2017-10-121-29/+14
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e7720a0f FindXMLRPC: Tolerate no include directories b1aa8a47 FindXMLRPC: Drop unnecessary exec_program code paths Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1377
| * | | | | FindXMLRPC: Tolerate no include directoriesBrad King2017-10-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `xmlrpc-c-config $modules --cflags` may report no `-I` flags if the headers are in a standard location like `/usr/include`. In this case it is okay for `XMLRPC_INCLUDE_DIRS` to be empty. Ideally the `--cflags` output should be used as hints for a `find_path` call to really find the headers as we do for other find modules, but simply assuming no explicit include directories are needed is good enough for now. Fixes: #17347
| * | | | | FindXMLRPC: Drop unnecessary exec_program code pathsBrad King2017-10-111-28/+12
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | We always have `execute_process` now, so drop our ancient `exec_program` code paths that are never used anymore.