summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'swift-win32-property'Brad King2021-10-293-6/+13
|\ | | | | | | | | | | | | c782f140d4 Swift: Ignore WIN32_EXECUTABLE property outside of Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6658
| * Swift: Ignore WIN32_EXECUTABLE property outside of Windowshotwatermorning2021-10-283-6/+13
| | | | | | | | Issue: #19877
* | Merge topic 'target-sources-file-set'Brad King2021-10-2884-25/+1068
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a7c71b9f03 Tests: Add tests for target_sources(FILE_SET) and associated functionality 4b0ee4e338 Help: Add documentation for target_sources(FILE_SET) and associated properties 3c3698b0e4 FileAPI: Add information on file set installers 8a09723bff cmGeneratorTarget: Integrate file sets into calculated sources 2a78d47b16 install(EXPORT): Install file sets 9b479124cc install(TARGETS): Add FILE_SET mode d8af2d954f target_sources(): Add FILE_SET mode f2bd022468 cmTargetSources: Refactor to add enum class parameters ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6653
| * | Tests: Add tests for target_sources(FILE_SET) and associated functionalityKyle Edwards2021-10-2765-0/+436
| | |
| * | FileAPI: Add information on file set installersKyle Edwards2021-10-2719-25/+632
| | |
* | | Merge topic 'builtin-help-versionadded'Brad King2021-10-282-0/+12
|\ \ \ | |/ / |/| | | | | | | | | | | | | | | | | 054754359a cmRST: support `versionadded` and `versionchanged` directives Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6667
| * | cmRST: support `versionadded` and `versionchanged` directivesBen Boeckel2021-10-272-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | This makes `versionadded` and `versionchanged` directives show up in `cmake --help-*` output instead of disappearing (and potentially making empty sections). Fixes: #22808
* | | Merge topic 'warnings-cleanup'Brad King2021-10-278-30/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7e4e192ce2 Source: fix clang-tidy modernize-redundant-void-arg warning 8d671dd94c Source: fix more -Wmissing-prototypes warnings 1cf14f8c03 Source: fix many -Wmissing-prototypes warnings by marking functions static 319944b3d2 Source: fix some -Wunused-macros warnings 5257d9e71a Source: fix only -Wshorten-64-to-32 warning with explicit cast Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6648
| * | | Source: fix many -Wmissing-prototypes warnings by marking functions staticSean McBride2021-10-258-30/+36
| | |/ | |/|
* | | Merge topic 'purge-sprintf'Brad King2021-10-271-2/+3
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | b7e9cd05cd Replace the only non-standard _snprintf with snprintf 5ba6e8ac59 Source: Replace most calls to sprintf with snprintf Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6649
| * | | Source: Replace most calls to sprintf with snprintfSean McBride2021-10-251-2/+3
| |/ /
* | | Merge topic 'envmod-support-mod-to-new-variables'Brad King2021-10-272-1/+25
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 69f95cf1d9 cmCTestRunTest: fix modifying non-existent envvars Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6663
| * | | cmCTestRunTest: fix modifying non-existent envvarsBen Boeckel2021-10-262-1/+25
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | When appending or modifying to a variable that has not been modified before, the iterator was not valid, but it was used to insert into the map again. Instead, just use indexing into the map since we know it will exist by the end of the function anyways. Fixes: #22796
* | | CheckSymbolExists: Work around GCC failure with -pedantic-errors optionTimo Röhling2021-10-221-0/+11
| |/ |/| | | | | | | | | | | | | | | | | | | | | GCC mistakenly issues the pedantic warning "ISO C forbids conversion of function pointer to object pointer type". With -pedantic-errors in the compile flags, that diagnostic prevents check_symbol_exists() from detecting function symbols. The solution is to filter out -pedantic-errors (and -Werror, just to be future proof) before invoking try_compile(). Fixes: #13208
* | Merge topic 'lcc-policy'Brad King2021-10-2225-3/+147
|\ \ | | | | | | | | | | | | | | | | | | | | | 3958ed878f LCC: Add policy CMP0129 regarding interpreting LCC as GNU Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6643
| * | LCC: Add policy CMP0129 regarding interpreting LCC as GNUmakise-homura2021-10-2125-3/+147
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Due to MCST LCC compiler identification is now changed to LCC, there should be a way for old projects to still identify it as GNU, as it was before. This commits adds the policy: CMP0129: Compiler id for MCST LCC compilers is now LCC, not GNU. This policy controls such a behavior. OLD behaivior is to treat LCC as GNU, NEW is to treat is as LCC.
* | | Merge topic 'vs-instance'Brad King2021-10-215-0/+16
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 46e9ff5729 Restore honoring CMAKE_GENERATOR_INSTANCE in toolchain file 42418b02f7 Android: Refactor sysroot detection under Visual Studio 44a86d0b38 cmake_host_system_information: Add undocumented VS_MSBUILD_COMMAND key 6999b87133 cmGlobalVisualStudio10Generator: Add method to find MSBuild early 7f730464be cmGlobalGenerator: Add method to check if generator is at least VS 10 8917b8512f cmGlobalVisualStudioVersionedGenerator: Allow repeating SetGeneratorInstance 6511654164 cmGlobalVisualStudio10Generator: Allow subclasses to reset MSBuild search Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !6646
| * | cmake_host_system_information: Add undocumented VS_MSBUILD_COMMAND keyBrad King2021-10-205-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When using the Visual Studio generator for VS 10 or above, offer this key to get the location of the MSBuild command before the first `project()` or `enable_language()` command has finished running. This will be needed only by one of our own modules, so leave it undocumented for now.
* | | Merge topic 'fix_reroot_paths'Brad King2021-10-213-0/+17
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 91ec6eee58 find_package: Don't reroot prefix that is equal to a root path Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6644
| * | | find_package: Don't reroot prefix that is equal to a root pathAlexandru Croitor2021-10-203-0/+17
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | When both CMAKE_FIND_ROOT_PATH and CMAKE_PREFIX_PATH are set to /opt/my_device_sysroot, cmFindCommon::RerootPaths would only look for packages in /opt/my_device_sysroot/opt/my_device_sysroot but would not try to look in /opt/my_device_sysroot. Make sure to not reroot the prefix path in such a case. Fixes: #21937
* | | CUDA: Allow both CUDA_SEPARABLE_COMPILATION and CUDA_PTX_COMPILATIONRobert Maynard2021-10-206-1/+97
| | | | | | | | | | | | | | | | | | The target properties `CUDA_SEPARABLE_COMPILATION` and `CUDA_PTX_COMPILATION` now aren't mutually exclusive and can now be used together on the same target.
* | | Merge topic 'vs-unity-individual-pch'Brad King2021-10-206-6/+36
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 71f15be957 VS: Fix compilation of single source with PCH in Unity Build 7fcc35c676 Tests: Clean RunCMake.UnityBuild cases Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6641
| * | | VS: Fix compilation of single source with PCH in Unity BuildBrad King2021-10-195-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sources that are part of a unity build are normally not compiled individually. However, the VS IDE allows a single source to be compiled. This can also be achieved on the command line: msbuild my.vcxproj ... -t:ClCompile -p:SelectedFiles=<src> where `<src>` is the path in the vcxproj `ClCompile` entry. In a target with precompiled headers, the source needs PCH settings to support individual compilation even if the normal unity build does not.
| * | | Tests: Clean RunCMake.UnityBuild casesBrad King2021-10-191-6/+2
| |/ /
* | | Tests/RunCMake: Merge TargetSources into target_sourcesKyle Edwards2021-10-1967-41/+39
|/ /
* | Merge topic 'lcc-compiler'Brad King2021-10-1933-61/+95
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 02b2607a5c Help: Add release note for MCST LCC compiler support e5d9fce03f LCC: Add dedicated support for MCST LCC compiler 2b9ef77944 CPack/DEB: deal with broken dpkg-shlibdeps on E2K architecture 0995c75301 Tests/RPM: skip tests tat rely on debugedit if it's not found ea55ac9a51 Tests/RunCMake/CommandLine: Deal with locales that are different from English Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6608
| * | LCC: Add dedicated support for MCST LCC compilermakise-homura2021-10-1530-55/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Divert LCC compiler as a new one, instead of treating it as GNU. Since old times, Elbrus C/C++/Fortran Compiler (LCC) by MCST has been passing checks for GNU compilers, so it has been identified as GNU. Now, with intent of seriously upstreaming its support, it has been added as a separate LCC compiler, and its version displays not a supported GCC version, but LCC version itself (e.g. LCC 1.25.19 instead of GNU 7.3.0). This commit adds its support for detection, and also converts basically every check like 'is this compiler GNU?' to 'is this compiler GNU or LCC?'. The only places where this check is untouched, is where it regards other platforms where LCC is unavailable (primarily non-Linux), and where it REALLY differs from GNU compiler. Note: this transition may break software that are already ported to Elbrus, but hardly relies that LCC will be detected as GNU; still such software is not known.
| * | CPack/DEB: deal with broken dpkg-shlibdeps on E2K architecturemakise-homura2021-10-151-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "OS Elbrus" (OSL for short), a reference Linux distro for E2K (Elbrus) platform may have broken dpkg-shlibdeps, that doesn't specify dependencies correctly. In this case, the only reliable way is to explicitly set dependencies of libc6 and lcc-libs, and then warn user to let him know this list may be incomplete. This commit does that. This fix has no effect on correctly working dpkg-shlibdeps, so when this bug will be fixed in new versions of OSL, CPack will work as expected with these distros.
| * | Tests/RPM: skip tests tat rely on debugedit if it's not foundmakise-homura2021-10-151-5/+22
| | | | | | | | | | | | | | | | | | There are several tests that run on systems that have rpm installed, but they fail if there's no debugedit installed also. This commit makes these tests being skipped in such case.
| * | Tests/RunCMake/CommandLine: Deal with locales that are different from Englishmakise-homura2021-10-151-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RunCMake/CommandLine has problems when ran using language setting differeng from English. This is due to test outputs being compared to English strings, which comparison obviously fails if this language is set to, e.g. Russian. This commit sets locale as "C" prior to running these tests, so messages while testing are generated in correct language and do not fail checks anymore.
* | | Merge topic 'ci-openwatcom'Brad King2021-10-191-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 14f2dbad03 ci: Add Open Watcom 1.9 nightly CI job 94404e912e Tests: Disable SubDirSpaces test on Open Watcom Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Ben Boeckel <ben.boeckel@kitware.com> Merge-request: !6635
| * | | Tests: Disable SubDirSpaces test on Open WatcomBrad King2021-10-151-1/+1
| | | | | | | | | | | | | | | | Open Watcom 1.9 does not support spaces in the path.
* | | | export: Propagate IMPORTED_NO_SYSTEM target property to consumersBrad King2021-10-155-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Enabling `IMPORTED_NO_SYSTEM` on a target built within the project has no effect on the build system, but it is still a useful way to set the property on imported targets generated by `install(EXPORT)` and `export()`. Issue: #17364
* | | | Add property to mark IMPORTED targets as not SYSTEMBrad King2021-10-141-0/+7
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add an `IMPORTED_NO_SYSTEM` target property to specify this. When enabled, do not treat the `INTERFACE_INCLUDE_DIRECTORIES` of an imported target as `SYSTEM` include directories. This is similar to the existing `NO_SYSTEM_FROM_IMPORTED` property, but works from the consumed target rather than the consumer. Fixes: #17364
* | | Merge topic 'clang-warnings'Brad King2021-10-141-4/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 09f4edbcef Fix Clang -Wbitwise-instead-of-logical warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !6623
| * | | Fix Clang -Wbitwise-instead-of-logical warningsBrad King2021-10-131-4/+9
| | | |
* | | | Tests: Reduce RunCMake.BuildDepends MakeDependencies case size on BorlandBrad King2021-10-131-1/+6
|/ / / | | | | | | | | | | | | The Borland compiler takes a long time to process a large number of include files. Sometimes the test times out. Reduce its size.
* | | Merge topic 'optimize-macos-runtime-dependencies'Brad King2021-10-134-4/+12
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | 93c5864aa1 cmBinUtilsMacOSMachOLinker: improve performance by memoizing otool calls fc92d6640b cmFileCommand: improve error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6616
| * | cmFileCommand: improve error messageSeth R Johnson2021-10-124-4/+12
| |/ | | | | | | | | Print full list of unresolved dependencies and a phrase that indicates what about the file is unresolved.
* | Add deprecation warnings for policies CMP0094 and belowBrad King2021-10-083-0/+30
|/ | | | | | | The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for policies introduced in CMake 3.15 and below to encourage projects to port away from setting policies to OLD.
* Merge topic 'revert-debian-libexec'Brad King2021-10-081-2/+2
|\ | | | | | | | | | | | | 6658e260d4 GNUInstallDirs: Fix misinterpretation of Debian Policy on LIBEXECDIR Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6607
| * GNUInstallDirs: Fix misinterpretation of Debian Policy on LIBEXECDIRTimo Röhling2021-10-071-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Revert commit 798c1c3192 (GNUInstallDirs: Comply with Debian Policy on LIBEXECDIR, 2020-10-08, v3.19.0-rc1~11^2). The Debian Policy builds upon FHS 3.0 and permits installing to `/usr/libexec`. While Policy does grant an additional exception for applications to use a single subdirectory of `/usr/lib/<triplet>`, this is not meant to replace `/usr/libexec` as valid target. Fixes: #22731
* | Merge topic 'FindJasper-imported-target'Brad King2021-10-074-0/+44
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 6e8754c625 FindJasper: Add IMPORTED target bdbce845cd FindJasper: Add JASPER_INCLUDE_DIRS result variable 7f8413c309 FindJasper: Modernize documentation layout 524205a7a5 FindJasper: Modernize code layout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4633
| * | FindJasper: Add IMPORTED targetHiroshi Miura2021-10-064-0/+44
| | | | | | | | | | | | | | | Fixes: #20601 Signed-off-by: Hiroshi Miura <miurahr@linux.com>
* | | Tests: Skip RunCMake.file INSTALL-FOLLOW_SYMLINK_CHAIN case on CygwinBrad King2021-10-062-2/+4
|/ / | | | | | | | | | | | | This case was added by commit e3ff7ced63 (file(INSTALL): Add FOLLOW_SYMLINK_CHAIN argument, 2019-05-16, v3.15.0-rc1~103^2). Skip it on Cygwin because it fails due to `foo/../` pairs being flattened away in symlinks.
* | Merge topic 'ci-xcode-13.0'Brad King2021-10-062-4/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | 429522e89c gitlab-ci: update macOS jobs to use Xcode 13.0 75901f0472 Tests: Fix RunCMake.XcodeProject XcodeIOSInstallCombined cases for Xcode 13.0 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6578
| * | Tests: Fix RunCMake.XcodeProject XcodeIOSInstallCombined cases for Xcode 13.0Brad King2021-10-052-4/+4
| | | | | | | | | | | | | | | The output of `otool -vf` now contains additional content that happens to be matched by our architectures regex. Make the regex more strict.
* | | Merge topic 'xcode13-schema'Brad King2021-10-061-1/+6
|\ \ \ | |/ / | | | | | | | | | | | | | | | 0e86fea0be Tests: Specify destination for Xcode scheme Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6582
| * | Tests: Specify destination for Xcode schemeGregor Jasny2021-10-051-1/+6
| | | | | | | | | | | | | | | | | | | | | The `Using the first of multiple matching destinations` warning vanishes if we explicitly specify a destination. Fixes: #22704
* | | Merge topic 'find-blas-lapack-sizeof-integer'Brad King2021-10-067-107/+107
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 64038fd5bc Help: Add release notes for Find{BLAS,LAPACK} BLA_SIZEOF_INTEGER option 972489ae4e Find{BLAS,LAPACK}: Provide testing of BLA_SIZEOF_INTEGER 95219365ff Find{BLAS,LAPACK}: Make possible testing of ILP64 model 2cd94f3e57 Find{BLAS,LAPACK}: Specify integer type in tests 9b69307b56 Find{BLAS,LAPACK}: De-duplicate and generalize test creation logic 91fd645d46 FindLAPACK: Stop processing if LAPACK library does not have 64-bit integer API b8a3cea51f FindBLAS: Stop processing if BLAS library does not have 64-bit integer API d2f5c7856f FindLAPACK: Search 32/64-bit integer API via BLA_SIZEOF_INTEGER if possible ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6407