summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Merge topic 'cuda-default-link-launcher'Brad King2017-10-051-1/+29
|\ | | | | | | | | | | | | 7914fb82 CUDA: Fix default selection of host compiler used to drive linking Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1341
| * CUDA: Fix default selection of host compiler used to drive linkingBrad King2017-10-041-1/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When no explicit `CMAKE_CUDA_HOST_COMPILER` is specified by the user then we do not pass `-ccbin` to `nvcc`. In this case, nvcc's link line we extract during the compiler identification step may not have the absolute path to the host compiler it uses to drive linking. If it is not absolute, use the `PATH=` from nvcc's output to search for it since that is the one `nvcc` would use. This fixes our internal `CMAKE_CUDA_HOST_LINK_LAUNCHER` value used to construct link lines when using `CUDA` as the linker language. It needs to match the host compiler `nvcc` uses internally during compilation. Fixes: #17323
* | Merge topic 'FindCUDA-run_nvcc-CMP0007'Brad King2017-10-051-5/+4
|\ \ | | | | | | | | | | | | | | | | | | 8b09c20c FindCUDA: Fix CMP0007 warning in run_nvcc.cmake Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1340
| * | FindCUDA: Fix CMP0007 warning in run_nvcc.cmakeUmar Arshad2017-10-041-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | Set `CMP0007` to `NEW` for the entire script. The script comes with CMake and is aware of the policy's behavior, so set the policy to ensure that its warnings do not show up during the build phase. Fixes: #16579
* | | Merge topic 'find-matlab-r2017b'Brad King2017-10-051-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | f156b2fb FindMatlab: Add support for MATLAB 2017b Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Raffi Enficiaud <raffi.enficiaud@free.fr> Merge-request: !1343
| * | | FindMatlab: Add support for MATLAB 2017bJamie Snape2017-10-041-1/+1
| | |/ | |/|
* | | FindOpenMP: Fix version if OpenMP doesn't workChristian Pfeiffer2017-10-041-2/+6
|/ /
* | Merge topic 'compiler-version-internal'Brad King2017-10-047-2/+30
|\ \ | |/ |/| | | | | | | | | | | | | 1bdb8cd2 IAR: Detect compiler platform version b96ca728 Add infrastructure to detect secondary compiler version information f952f16d Help: Fix placement of one variable in cmake-variables manual Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1324
| * IAR: Detect compiler platform versionStefan Andersson2017-10-031-2/+5
| | | | | | | | | | | | | | | | `__IAR_SYSTEMS_ICC__` provides additional version information that we need to determine correct usage of the compiler. Extract and store it as `CMAKE_<LANG>_COMPILER_VERSION_INTERNAL`. Issue: #17264
| * Add infrastructure to detect secondary compiler version informationBrad King2017-10-036-0/+25
| | | | | | | | | | | | | | | | | | | | | | Create a `CMAKE_<LANG>_COMPILER_VERSION_INTERNAL` variable to hold a secondary/internal compiler version number detected at the same time as the primary compiler version. This will be useful for some compilers where we need such a number to determine correct usage. Inspired-by: Stefan Andersson <tfosm@hotmail.com> Suggested-by: Norbert Lange <norbert.lange@andritz.com> Issue: #17264
* | Merge topic 'FindProtobuf-gen-desc'Brad King2017-10-031-10/+34
|\ \ | |/ |/| | | | | | | | | | | 1299f4cc FindProtobuf: add flag to allow descriptor files to be generated 4e91be95 FindProtobuf: Refactor custom command output listing Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1301
| * FindProtobuf: add flag to allow descriptor files to be generatedPeter Mitrano2017-10-021-3/+26
| | | | | | | | | | | | | | | | | | | | | | - The .desc files will be in the same folder as the generated .cc and .h files. - Paths to generate .desc files are stored in a variable passed in - This is only implemented for C++ - Remove legacy ARGS - Add test that generates and uses C++ protobuf message - Add test that checks that the generated .desc file can be instantiated with DynamicMessageFactory - Add Help rst for new feature
| * FindProtobuf: Refactor custom command output listingBrad King2017-10-021-7/+8
| | | | | | | | | | | | Reduce duplication by storing the custom command outputs in variables. Also, since custom command outputs are automatically marked as generated we do not need to do so explicitly.
* | Merge topic 'autogen-predefs'Brad King2017-10-021-0/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | 6bbc1e77 Autogen: Add release notes for (CMAKE_)AUTOMOC_COMPILER_PREDEFINES 75c98b5e Autogen: Doc: Add documentation for (CMAKE_)AUTOMOC_COMPILER_PREDEFINES 1d7f099d Autogen: Add (CMAKE_)AUTOMOC_COMPILER_PREDEFINES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1328
| * | Autogen: Add (CMAKE_)AUTOMOC_COMPILER_PREDEFINESSebastian Holtermann2017-09-291-0/+1
| | |
* | | FindBoost: Improve messages when a Boost CMake package is foundBrad King2017-09-291-3/+2
| | | | | | | | | | | | | | | | | | Add a test for this case to verify the messages. This test will also be valuable to cover this code path in which we've had several regressions recently.
* | | Merge topic 'cuda_9_support'Brad King2017-09-291-0/+2
|\ \ \ | |/ / |/| | | | | | | | | | | | | | fe37b994 CUDA: Add support for requesting C++98 under CUDA 9 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1315
| * | CUDA: Add support for requesting C++98 under CUDA 9Robert Maynard2017-09-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Starting in CUDA 9 the default compilation mode is C++14, and you need to explicitly enable C++98/03 mode. While at it, document `14` among the values for `CUDA_STANDARD`. This was accidentally left out of commit v3.9.0-rc1~118^2 (CUDA: Add support for the C++14 standard flag, 2017-05-11).
* | | Merge topic 'external-project-refactor-ep_get_complete_stampfile'Brad King2017-09-291-5/+11
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | da470525 ExternalProject: Refactor code introducing _ep_get_complete_stampfile Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1323
| * | | ExternalProject: Refactor code introducing _ep_get_complete_stampfileJean-Christophe Fillion-Robin2017-09-281-5/+11
| | | |
* | | | Merge topic 'FindMatlab-version-quoting'Brad King2017-09-291-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a245f850 FindMatlab: Fix extraction of quoted version number Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1316
| * | | | FindMatlab: Fix extraction of quoted version numberBrad King2017-09-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The version string in recent Matlab versions has changed. Now the version number is inside two `'`. Patch-by: nama on gitlab.kitware.com Fixes: #17308
* | | | | Autogen: Define all macro names in CMAKE_AUTOMOC_MACRO_NAMESSebastian Holtermann2017-09-271-0/+1
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of adding `Q_OBJECT` and `Q_GADGET` to the macro search list in `Source/cmQtAutoGenerators.cxx`, add them in `Modules/CMakeGenericSystem.cmake` to the default value of `CMAKE_AUTOMOC_MACRO_NAMES`. Also add `Q_NAMESPACE` to `CMAKE_AUTOMOC_MACRO_NAMES` which closes #17299.
* | | | Merge topic 'GetPrerequisites-no-clear-on-missing'Brad King2017-09-271-1/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1a7b8c83 GetPrerequisites: Restore behavior on missing binary of not clearing list Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1312
| * | | | GetPrerequisites: Restore behavior on missing binary of not clearing listBrad King2017-09-261-1/+0
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Prior to commit v3.4.0-rc1~264^2~1 (GetPrerequisites: Add error checks for execute_process() calls, 2015-07-29), `get_prerequisites` would simply warn on a missing binary and not update the result list at all. That commit accidentally made the case an error. This was fixed by commit v3.8.0-rc1~110^2 (GetPrerequisites: Do not fail on files we cannot find, 2017-01-10), but the fix also cleared the result list. Clearing the list is incorrect because it is supposed to be able to accumulate results over multiple calls. Remove the list clearing behavior to restore the original behavior on a missing binary. Fixes: #17306
* | | | Merge topic 'autogen-per-config-sources'Brad King2017-09-271-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4603d6b0 Autogen: Docs: Add documentation internal links f86ba8ee Autogen: Reintroduce per-config sources support 5d3bca64 Autogen: Rename cmQtAutoGen::GeneratorType to cmQtAutogen::Generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1307
| * | | | Autogen: Reintroduce per-config sources supportSebastian Holtermann2017-09-251-1/+3
| | | | | | | | | | | | | | | | | | | | Reintroduce per-config sources support in AUTOGEN but disable it by default.
* | | | | FindOpenGL: Add support for GLVND on LinuxTom Fogal2017-09-251-39/+280
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Find GLVND components if available. Add `GLX` and `EGL` options for COMPONENTS that allow requesting these libraries explicitly. Introduce new import targets for these windowing-system-specific libraries. On a GLVND system, populate the legacy `OPENGL_LIBRARIES` variable and the `OpenGL::GL` target using the `OpenGL` and `GLX` components. On non-GLVND systems, continue to use the legacy `GL` library and simply do not provide the GLVND components. Application code can choose to adapt based on the availability of GLVND components as imported targets.
* | | | Merge topic 'FindOpenACC'Brad King2017-09-251-0/+252
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d3b6f291 FindOpenACC: Add module to detect compiler support for OpenACC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1209
| * | | | FindOpenACC: Add module to detect compiler support for OpenACCTin Huynh2017-09-221-0/+252
| | | | |
* | | | | Merge topic 'cpackifw-options'Brad King2017-09-251-6/+28
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9a24ab6b CPackIFW: Add some options Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1298
| * | | | | CPackIFW: Add some optionsKonstantin Podsvirov2017-09-211-6/+28
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | The `CPackIFW` module `cpack_ifw_configure_component` and `cpack_ifw_configure_component_group` commands gained a new `REPLACES` and `CHECKABLE` options.
* | | | | Merge topic 'FindOpenMP-CMP0054'Brad King2017-09-251-0/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | dd5324ab FindOpenMP: Avoid CMP0054 warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1303
| * | | | FindOpenMP: Avoid CMP0054 warningsBrad King2017-09-221-0/+1
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When invoked in projects that don't set CMP0054 to NEW, FindOpenMP triggers a warning: CMake Warning (dev) at .../Modules/FindOpenMP.cmake:... (if): Policy CMP0054 is not set...Quoted variables like "c" will no longer be dereferenced when the policy is set to NEW. Since the policy is not set the OLD behavior will be used. Set the policy within the module's scope to avoid this. Fixes: #17292
* | | | Merge topic '`16839-better-tvos-support`'Craig Scott2017-09-242-1/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 45e30d12 Xcode: Add team to compiler-id project 0be0e02c Xcode: Add tvOS and watchOS toolchain file support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1278
| * | | | Xcode: Add team to compiler-id projectGregor Jasny2017-09-192-0/+7
| | | | | | | | | | | | | | | | | | | | Closes #16839
| * | | | Xcode: Add tvOS and watchOS toolchain file supportGregor Jasny2017-09-191-1/+2
| | | | | | | | | | | | | | | | | | | | Issue #16839
* | | | | Merge topic 'graphviz-link-type'Craig Scott2017-09-221-0/+3
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | 5b46cc91 graphviz: distinguish target dependency types Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1229
| * | | | graphviz: distinguish target dependency typesNico Müller2017-09-211-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - The output graph of graphviz differs now between target link types - Updated documentation - Fixes: #17192
* | | | | Merge topic 'cpack-rpm-deb-version'Brad King2017-09-222-8/+61
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 74b7457f CPack RPM and DEB: improved package version handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1296
| * | | | | CPack RPM and DEB: improved package version handlingDomen Vrankar2017-09-212-8/+61
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds support for epoch version to CPackRPM and CPackDeb packagers. Also adds better version checking to CPackDeb that complies with Debian rules. Fixes: #17057
* | | | | CPack/RPM: new CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST exclude pathsDomen Vrankar2017-09-211-2/+6
| |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Patch adds `/usr/share/aclocal` path to exclude list and and documents `/usr/libx32` and `/usr/include` paths that were already on the list. Closes: #17056
* | | | Merge topic 'midipix-support'Brad King2017-09-211-0/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0df43496 Midipix: Add minimal platform file Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1294
| * | | | Midipix: Add minimal platform filemidipix2017-09-201-0/+1
| |/ / / | | | | | | | | | | | | Add Midipix.cmake (UnixPaths, no overrides, no special cases).
* | | | Merge topic 'freebsd-compiler-name'Brad King2017-09-211-0/+3
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | 3cf3bb71 Help: Add notes for topic 'freebsd-compiler-name' a0508dee FreeBSD prefers to call the C++ compiler c++ (just like Linux, Darwin, ..) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1293
| * | | FreeBSD prefers to call the C++ compiler c++ (just like Linux, Darwin, ..)Adriaan de Groot2017-09-201-0/+3
| |/ /
* | | Merge topic 'pgi-fortran-flag-fix'Brad King2017-09-202-5/+8
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 485a6f0e PGI-Fortran: Add -Mipa=fast,inline as IPO option. 97f0b177 PGI-Fortran: Remove -Kieee and -Mpreprocess Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1239
| * | | PGI-Fortran: Add -Mipa=fast,inline as IPO option.Tin Huynh2017-09-151-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove -Mipa=fast as a default flag and add it as an option instead. -Mipa=fast is a flag that speeds up runtime but at the cost of significant compile time increase and therefore, shouldn't be a default flag. In addition, -Mipa isn't supported on PGI OpenPOWER or x86/llvm compilers.