summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | FindPNG: Fix definitions on imported targetAxel Huebl2019-05-171-1/+4
| |/ |/| | | | | | | The `INTERFACE_COMPILE_DEFINITIONS` property should not have ``-D`` in its value.
* | Merge topic 'findblas_mklroot_bla_vendor'Brad King2019-05-171-9/+8
|\ \ | | | | | | | | | | | | | | | | | | 89ab54c112 FindBLAS: Choose MKL arch based on BLA_VENDOR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3330
| * | FindBLAS: Choose MKL arch based on BLA_VENDORJakub Benda2019-05-161-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recently, FindBLAS has been extended with additional library search path based on the environment variable MKLROOT. However, the choice of the Intel MKL architecture (IA-32 vs Intel64) was based on unrelated (and possibly undefined) size of integer. This commit changes the selection of the Intel MKL architecture to instead consider the variable BLA_VENDOR, if available. So, if the environment variable MKLROOT is defined and BLA_VENDOR=Intel10_32, then $ENV{MKLROOT}/lib/ia32_<OS> will be added to the search path (OS = lin, win, or mac). Similarly, if MKLROOT is defined and BLA_VENDOR=Intel10_64lp or BLA_VENDOR=Intel10_64ilp, then the path $ENV{MKLROOT}/intel64_<OS> will be used. If either MKLROOT or BLA_VENDOR is undefined, no additional search path on top of LD_LIBRARY_PATH / DYLD_LIBRARY_PATH / LIB is be added.
* | | Merge topic 'use_additional_clean_files'Brad King2019-05-174-8/+9
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | eda3963615 UseSWIG: Use ADDITIONAL_CLEAN_FILES for cleaning 8c47be28cc UseJava: Use ADDITIONAL_CLEAN_FILES for cleaning ac86c02d1b UseEcos: Use ADDITIONAL_CLEAN_FILES for cleaning 2532e00339 FindDoxygen: Use ADDITIONAL_CLEAN_FILES for cleaning 4edc0ef359 Test: Improve WarnUnusedCliUnused to run on all generators Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3328
| * | UseSWIG: Use ADDITIONAL_CLEAN_FILES for cleaningSebastian Holtermann2019-05-151-2/+2
| | | | | | | | | | | | | | | Replace use of the deprecated `ADDITIONAL_MAKE_CLEAN_FILES` directory property with the new `ADDITIONAL_CLEAN_FILES` directory property.
| * | UseJava: Use ADDITIONAL_CLEAN_FILES for cleaningSebastian Holtermann2019-05-151-1/+2
| | | | | | | | | | | | | | | Replace use of the deprecated `ADDITIONAL_MAKE_CLEAN_FILES` directory property with the new `ADDITIONAL_CLEAN_FILES` directory property.
| * | UseEcos: Use ADDITIONAL_CLEAN_FILES for cleaningSebastian Holtermann2019-05-151-4/+4
| | | | | | | | | | | | | | | Replace use of the deprecated `ADDITIONAL_MAKE_CLEAN_FILES` directory property with the new `ADDITIONAL_CLEAN_FILES` directory property.
| * | FindDoxygen: Use ADDITIONAL_CLEAN_FILES for cleaningSebastian Holtermann2019-05-151-1/+1
| | | | | | | | | | | | | | | Replace use of the deprecated `ADDITIONAL_MAKE_CLEAN_FILES` directory property with the new `ADDITIONAL_CLEAN_FILES` directory property.
* | | Merge topic 'armclang'Brad King2019-05-1613-1/+121
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7b0abaac31 ARMClang: Add support for Clang-based ARM compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3315
| * | | ARMClang: Add support for Clang-based ARM compilerJohan Stridkvist2019-05-1413-1/+121
| | | | | | | | | | | | | | | | Fixes: #18215
* | | | Merge topic 'FindBoost-allow-root'Brad King2019-05-161-1/+5
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | e1e3935f5d FindBoost: Remove obsolete diagnostic message about Boost_ROOT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3323
| * | | FindBoost: Remove obsolete diagnostic message about Boost_ROOTDennis Klein2019-05-151-1/+5
| | |/ | |/| | | | | | | | | | | | | | | | | | | CMake 3.12 introduced <package>_ROOT CMake and environment variables to be valid hints to find_package(<package>). Defining Boost_ROOT is no longer wrong if CMP0074 is set to NEW. Fixes #18810
* | | Merge topic 'msvc-jmc'Brad King2019-05-152-0/+10
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 2a9ff9703e MSVC: Add support for /JMC (Just My Code) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3121
| * | MSVC: Add support for /JMC (Just My Code)Luca Cappa2019-05-142-0/+10
| | |
* | | Merge topic 'refactor_docs_use_java'Craig Scott2019-05-151-294/+229
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 359e2d401d UseJava: Refactor documentation for better formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3303
| * | | UseJava: Refactor documentation for better formattingRobert Maynard2019-05-151-294/+229
| |/ / | | | | | | Co-Authored-By: Craig Scott <craig.scott@crascit.com>
* | | Modules: Consistently use 2 space indentationKitware Robot2019-05-1448-1627/+1624
| | |
* | | Merge topic 'find-boost-cmp0093'Brad King2019-05-141-3/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5108759ed2 FindBoost: Introduce CMP0093 to report Boost_VERSION in x.y.z format Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3317
| * | | FindBoost: Introduce CMP0093 to report Boost_VERSION in x.y.z formatDennis Klein2019-05-131-3/+12
| | | | | | | | | | | | | | | | This aligns module mode behaviour with config mode.
* | | | Merge topic 'relax_cxx_relaxed_constexpr_requirements'Brad King2019-05-144-12/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d156f8f5a2 CompileFeatures: Record when MSVC gained full CXX14 support 62dbe53a8a CompileFeatures: Record when Intel gained full CXX14 support 1ebb0d79fe CompileFeatures: Relax cxx_relaxed_constexpr compiler requirements Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3292
| * | | | CompileFeatures: Record when MSVC gained full CXX14 supportRobert Maynard2019-05-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the infrastructure added by commit 646fb1a646 (CompileFeatures: memoize C++ compilers with full language level support, 2019-03-27) to avoid using a `try_compile` to check for C++14 feature support when the running compiler is known to have all features.
| * | | | CompileFeatures: Record when Intel gained full CXX14 supportRobert Maynard2019-05-131-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the infrastructure added by commit 646fb1a646 (CompileFeatures: memoize C++ compilers with full language level support, 2019-03-27) to avoid using a `try_compile` to check for C++14 feature support when the running compiler is known to have all features.
| * | | | CompileFeatures: Relax cxx_relaxed_constexpr compiler requirementsRobert Maynard2019-05-132-5/+3
| | |/ / | |/| | | | | | | | | | | | | | This in effect means that cxx_relaxed_constexpr is now supported by MSVC and Intel 18.0-18.04.
* | | | Merge topic 'apple_clang_cxx_20_support'Brad King2019-05-141-1/+5
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9523ca72e2 Features: Activate C++20 support for AppleClang 10.0+ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3294
| * | | | Features: Activate C++20 support for AppleClang 10.0+Robert Maynard2019-05-071-1/+5
| |/ / /
* | | | Merge topic 'swig4'Brad King2019-05-141-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65c5c1b567 FindSWIG: Support swig4.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3314
| * | | | FindSWIG: Support swig4.0Daniele E. Domenichelli2019-05-131-1/+1
| | | | |
* | | | | Merge topic 'ios-xctest-lookup'Brad King2019-05-141-0/+19
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | e9d128b789 Apple: Properly lookup XCTest for iOS and tvOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3309
| * | | | Apple: Properly lookup XCTest for iOS and tvOSGregor Jasny2019-05-111-0/+19
| | | | | | | | | | | | | | | | | | | | Closes: #19172
* | | | | Merge topic 'apple_clang_full_cxx_14_support'Brad King2019-05-131-0/+2
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | daad51c3b7 CompileFeatures: Record when AppleClang gained full CXX14 support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3293
| * | | | | CompileFeatures: Record when AppleClang gained full CXX14 supportRobert Maynard2019-05-071-0/+2
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the infrastructure added by commit 646fb1a646 (CompileFeatures: memoize C++ compilers with full language level support, 2019-03-27) to avoid using a `try_compile` to check for C++14 feature support when the running compiler is known to have all features.