summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'FindBoost-debug-messages'Brad King2019-05-301-100/+100
|\ | | | | | | | | | | | | 35bfc85d95 FindBoost: Refactor debug messages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3382
| * FindBoost: Refactor debug messagesDennis Klein2019-05-281-100/+100
| | | | | | | | | | | | | | * Deduplicate code with helper functions * Remove double printing of _boost_TEST_VERSIONS * Fix #19158 * Add printing of a few additional variables
* | Merge topic 'clang-gnulike-support'Brad King2019-05-298-50/+169
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 74829f01b1 Help: Add notes for topic 'clang-gnulike-support' 19669abe1d Tests: handle string escaping differences with NMake+clang a2a90f41e3 Tests: require C++14 for the Tutorial 4819ff9647 Tests: fix failures with gnu mode clang on windows 26af0b25e7 cmake: use correct stack size with gnu mode clang on windows d44c0db0b2 clang: setup correct configuration in gnu mode b7d5ef23e9 cmGlobalNinjaGenerator: use gnu compatible paths with clang in gnu mode 3d0210d8dc binutils: add the llvm-* variants to the tool lists. ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Francesco Bertolaccini <francesco@bertolaccini.dev> Acked-by: Stanislav Ershov <digital.stream.of.mind@gmail.com> Acked-by: Saleem Abdulrasool <compnerd@compnerd.org> Merge-request: !2992
| * | clang: setup correct configuration in gnu modeZsolt Parragi2019-05-232-7/+123
| | |
| * | binutils: add the llvm-* variants to the tool lists.Zsolt Parragi2019-05-171-5/+16
| | | | | | | | | | | | | | | | | | | | | This allows cmake to use the ar/ranlib/objdump/ld tools on windows without mingw installed. These tools are selected when clang is in GNU command line mode.
| * | clang: introduce CMAKE_<lang>_COMPILER_FRONTEND_VARIANTZsolt Parragi2019-05-175-38/+30
| | | | | | | | | | | | | | | | | | | | | | | | This variable is set to GNU on Windows when clang.exe ar clang++.exe is used, and set to MSVC for clang-cl.exe. CMAKE_<lang>_SIMULATE_ID is set to MSVC in both cases, as clang defaults to -fms-compatibility for all command lines on windows.
* | | Merge topic 'FindZLIB-names'Brad King2019-05-291-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4ff3ab2ac9 FindZLIB: Add more zlib library names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3384
| * | | FindZLIB: Add more zlib library namesAlexander Neumann2019-05-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Account for all names that can be generated by the upstream zlib build system. Issue: #18029
* | | | Merge topic 'samu'Brad King2019-05-291-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a15595e4c9 Ninja: Consider 'samu' when looking for CMAKE_MAKE_PROGRAM Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3380
| * | | | Ninja: Consider 'samu' when looking for CMAKE_MAKE_PROGRAMMichael Forney2019-05-281-1/+1
| |/ / / | | | | | | | | | | | | | | | | | | | | `samurai` is an alternative implementation of ninja and is a drop-in replacement. `samu --version` reports the ninja version it is compatible with.
* | | | Merge topic 'swift-wrapper'Brad King2019-05-291-1/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6baa80d1e3 Modules: correct linker wrapper flag for Swift Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3390
| * | | | Modules: correct linker wrapper flag for SwiftSaleem Abdulrasool2019-05-281-1/+2
| | |_|/ | |/| | | | | | | | | | | | | | This was sitting locally but was missed in previous commits. This enables the use of `LINKER:` when building Swift code bases.
* | | | Merge topic 'linker-preference'Brad King2019-05-291-0/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | abea06efdf Modules: setup `CMAKE_Swift_LINKER_PREFERENCE` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3373
| * | | | Modules: setup `CMAKE_Swift_LINKER_PREFERENCE`Saleem Abdulrasool2019-05-241-0/+3
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swift's driver will invoke the C++ driver (`clang++`) to invoke the linker. Additionally, it will configure the command line to deal with the linkage runtime support object (`swiftrt.o` or `swiftrt.obj`) to be added at the right time (similar to C/C++). Since it indirects through `clang++` it will properly setup the linker invocation for C++ and C as well. This should permit the correct linker driver to be invoked in multi-language projects. Closes #19299
* | | | Merge topic 'findopenmp-new-dates'Brad King2019-05-291-0/+4
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 26f2b65fec FindOpenMP: Add 5.0 and VS19 spec dates Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3375
| * | | | FindOpenMP: Add 5.0 and VS19 spec datesChristian Pfeiffer2019-05-241-0/+4
| | | | | | | | | | | | | | | | | | | | Fixes: #19289
* | | | | Merge topic 'flex'Brad King2019-05-281-0/+1
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | a7754448f6 FindFLEX: fix example Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3379
| * | | | FindFLEX: fix exampleMarcin Ĺšlusarz2019-05-261-0/+1
| | |/ / | |/| | | | | | | | | | Binaries using flex must link with the detected library.
* | | | Merge topic 'FindThreads-doc-c++'Brad King2019-05-281-3/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a38b63c1bb FindThreads: Drop incorrect docs about usage with C++ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3391
| * | | | FindThreads: Drop incorrect docs about usage with C++Brad King2019-05-281-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Drop the sentence added by commit 5a5a1d90f0 (Help: FindThreads not needed with modern C++., 2019-01-09, v3.14.0-rc1~186^2) about not needing the module with modern C++. The module is often still needed. Fixes: #19297
* | | | | Merge topic 'FindPython-find_framework'Brad King2019-05-284-15/+41
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 62d6ed79fb FindPython: Add variable 'Python_FIND_FRAMEWORK' to control frameworks lookup. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3374
| * | | | | FindPython: Add variable 'Python_FIND_FRAMEWORK' to control frameworks lookup.Marc Chevrier2019-05-244-15/+41
| | |/ / / | |/| | |
* | | | | Merge topic 'GetPrerequisites-use-if-IN_LIST'Brad King2019-05-281-10/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3dfc8b9bd6 GetPrerequisites: use if(IN_LIST) instead of foreach Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3299
| * | | | | GetPrerequisites: use if(IN_LIST) instead of foreachBen Boeckel2019-05-231-10/+6
| | | | | |
* | | | | | Merge topic 'swift-response'Brad King2019-05-281-0/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9e5457d3b4 Ninja,Swift: correct response file handling Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3367
| * | | | | | Ninja,Swift: correct response file handlingSaleem Abdulrasool2019-05-231-0/+2
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The response file was being written but not used due to the wrong variable being configured for Swift. Swift does compile+link in a single phase and does not use the `<OBJECTS>` placeholder. Use the `<SWIFT_SOURCES>` placeholder instead for the response file substitution which serves the same purpose.
* | | | | | Merge topic 'FindICU-find-names'Brad King2019-05-281-4/+8
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 59c392b44e FindICU: Pass explicit NAMES argument to find command calls Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3371
| * | | | | | FindICU: Pass explicit NAMES argument to find command callsBrad King2019-05-241-4/+8
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves readability and avoids an undocumented signature variant. Fixes: #19302
* | | | | | Merge topic 'FindBoost-contract-requires-compile-features'Brad King2019-05-281-0/+10
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | b915a42585 FindBoost: Add compiler features for Boost Contract library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3368
| * | | | | FindBoost: Add compiler features for Boost Contract libraryAlex Turbov2019-05-241-0/+10
| | |/ / / | |/| | |
| * | | | Merge branch 'swig4' into release-3.14Brad King2019-05-131-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Merge-request: !3314
* | | | | | ARMClang: fix policy manipulation in the compiler moduleBen Boeckel2019-05-231-3/+5
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | Policies have their own scoping and cannot be set within a function without affecting callers.
* | | | | Merge topic 'swift-flag-variables'Brad King2019-05-231-2/+10
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 24223ac84b Modules: add Swift MSVC_RUNTIME_LIBRARY flags 7e636fd8e0 Modules: add `CMAKE_Swift_FRAMEWORK_SEARCH_FLAG` 0fbf936b46 Modules: remove `CMAKE_INCLUDE_FLAG_SEP_Swift` Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3353
| * | | | | Modules: add Swift MSVC_RUNTIME_LIBRARY flagsSaleem Abdulrasool2019-05-211-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds support for the newly minted `-libc` flag to the Swift driver invocation. These allow users to control the MSVC linkage properly on Windows targets.
| * | | | | Modules: add `CMAKE_Swift_FRAMEWORK_SEARCH_FLAG`Saleem Abdulrasool2019-05-211-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Swift supports frameworks and uses them across all OSes. They are added using the `-F` flag. There must be a space following the flag and before the parameter.
| * | | | | Modules: remove `CMAKE_INCLUDE_FLAG_SEP_Swift`Saleem Abdulrasool2019-05-211-2/+1
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | The include flag specifier should be specified multiply. The separator was being misused for adding a space after the `-I` flag. Correct this to get multiple include paths correct.
* | | | | Merge topic 'FindPython-find_strategy'Brad King2019-05-234-363/+813
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8517b549f4 FindPython: Add policy to manage lookup stratgey default. 9f205acefe FindPython: Implement lookup strategies. Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3354
| * | | | | FindPython: Add policy to manage lookup stratgey default.Marc Chevrier2019-05-214-5/+21
| | | | | |
| * | | | | FindPython: Implement lookup strategies.Marc Chevrier2019-05-214-363/+797
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Configration variable Python_FIND_STRATEGY controls the lookup startegy. Possible values are LOCATION and VERSION. Fixes: #19159
* | | | | Merge topic 'swift-flags'Brad King2019-05-231-4/+4
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02c14b7fcd Ninja,Swift: pass along DEFINES/FLAGS/INCLUDES Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3355
| * | | | | Ninja,Swift: pass along DEFINES/FLAGS/INCLUDESSaleem Abdulrasool2019-05-211-4/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since the Swift model does a single compile/link phase, we would not get the compile definitions, includes, and options past along to the build of the module. Compute these for the target when constructing the main command.
* | | | | Merge topic 'vs-ApplicationTypeRevision'Brad King2019-05-221-2/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9c07cefee5 VS: Fix ApplicationTypeRevision in builtin check projects 639e14def6 VS: Factor out helper to compute ApplicationTypeRevision Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3350
| * | | | | VS: Fix ApplicationTypeRevision in builtin check projectsBrad King2019-05-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do not use the entire `CMAKE_SYSTEM_VERSION`, but rather the first two components only. Fixes: #19275
* | | | | | IAR: Do not print compiler architecture id for non-IAR compilersBrad King2019-05-212-2/+2
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | The compiler identification message was modified in commit ea83d0f8fb (IAR: Generalize and add support for IAR RX compiler, 2019-04-05) to include the architecture id since IAR compilers are arch-specific. Revise the logic to avoid modifying the message for other compilers.
* | | | | Merge topic 'FindPostgreSQL-config-support'Brad King2019-05-211-13/+46
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | 368bcba28a FindPostgreSQL: Find debug lib, imported configs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3298
| * | | | FindPostgreSQL: Find debug lib, imported configsAndrei Lebedev2019-05-201-13/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add find_library calls for debug and release * Set imported configs for corresponding libraries in imported target * Set debug/optimized in PostgreSQL_LIBRARIES Signed-off-by: Andrei Lebedev <lebdron@gmail.com>
* | | | | Merge topic 'ninja-swift'Brad King2019-05-205-31/+130
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a9180ccf9a Tests: add a check for the Swift compiler d745551fb6 Help: add some initial documentation for Swift support 9a182c9e5b Auxiliary: update vim syntax highlighting e9b0063e8e Modules: add build rules for Swift Ninja support b6412e3e38 Ninja: add placeholders to support Swift build 7d7f31161d Ninja: add support for Swift's output-file-map.json d688c4c19d Swift: remove unnecessary unreleased Ninja infrastructure 0723582208 Swift: Detect compiler version ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3297
| * | | | | Modules: add build rules for Swift Ninja supportSaleem Abdulrasool2019-05-164-24/+98
| | | | | | | | | | | | | | | | | | | | | | | | Add rules to support building Swift sources using Ninja.
| * | | | | Swift: Detect compiler versionBrad King2019-05-161-0/+24
| | | | | |
| * | | | | CMakeDetermineCompilerId: Make CMAKE_${lang}_COMPILER available earlierBrad King2019-05-161-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If compiler id detection gave us the compiler tool, copy its value to the `CMAKE_${lang}_COMPILER` variable as early as possible.