summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'doc-xref-envvar'Brad King2018-05-042-0/+4
|\ | | | | | | | | | | | | 828e18bb3e cmRST: Add support for 'envvar' cmake domain role Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2038
| * cmRST: Add support for 'envvar' cmake domain roleBrad King2018-05-042-0/+4
| | | | | | | | | | This was accidentally left out of commit 8acf46caf1 (Utilities/Sphinx: Add role and directive for 'envvar' in CMake domain, 2018-04-19).
* | Merge topic 'test-CheckSourceTree-in-source'Brad King2018-05-041-3/+1
|\ \ | | | | | | | | | | | | | | | | | | 46fa1af514 Tests: Fix CheckSourceTree for in-source non-dashboard builds Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2025
| * | Tests: Fix CheckSourceTree for in-source non-dashboard buildsIsrael Blancas2018-05-031-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | For in-source builds we must tolerate non-tracked files in the source tree. Previously we only tolerated them for dashboard builds during automated testing, but we should tolerate them for local user builds too. Fixes: #17868
* | | Merge topic 'genex-complang-not-loaded'Brad King2018-05-043-10/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4f82199bef Genex: Allow COMPILE_LANGUAGE to name a language that is not loaded Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2031
| * | | Genex: Allow COMPILE_LANGUAGE to name a language that is not loadedHenry Schreiner2018-05-033-10/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | Evaluate to false on `$<COMPILE_LANGUAGE:Lang>` if language `Lang` is not loaded. This is helpful in exported targets consumed in other projects that may not enable all the same languages. Fixes: #17952
* | | Merge topic 'feature/cpack-default-package-version'Craig Scott2018-05-034-0/+56
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | af1c48871c CPack: Use project version as default for `CPACK_PACKAGE_VERSION` Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Harry Mallon <hjmallon@gmail.com> Merge-request: !2020
| * | CPack: Use project version as default for `CPACK_PACKAGE_VERSION`Alex Turbov2018-05-024-0/+56
| |/ | | | | | | | | | | | | | | | | | | * Introduce `CMAKE_PROJECT_VERSION` and the corresponsing components: `CMAKE_PROJECT_VERSION_MAJOR`, `CMAKE_PROJECT_VERSION_MINOR`, `CMAKE_PROJECT_VERSION_PATCH` and `CMAKE_PROJECT_VERSION_TWEAK`. * `CPack` module use `CMAKE_PROJECT_VERSION_MAJOR`, `CMAKE_PROJECT_VERSION_MINOR` and `CMAKE_PROJECT_VERSION_PATCH` to initialize corresponsing CPack variables.
* | install: add test for new NAMELINK_COMPONENT parameterKyle Edwards2018-05-0313-1/+285
|/
* Merge topic 'csharp_reference_imported_targets'Brad King2018-04-2618-0/+332
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | de549083e3 cmVisualStudio10TargetGenerator: warn if /clr flag is set manually 59ec7d50bd cmVisualStudio10TargetGenerator: fix for backward compatibility 663f5120f4 cmGlobalVisualStudioGenerator: remove TargetCanBeReferenced() 359544a907 add tests for using target_link_libraries() with imported managed targets 43571073e0 cmVisualStudio10TargetGenerator: store managed reference information in maps 16fec7e2fc cmVisualStudio10TargetGenerator: make some methods config aware f3c6828876 cmVisualStudio10TargetGenerator: /clr compatible flags for managed tgt f9042d807d remove TargetIsCSharpOnly() and use methods from cmGeneratorTarget ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1805
| * add tests for using target_link_libraries() with imported managed targetsMichael Stürmer2018-04-2418-0/+332
| |
* | Ninja: Avoid empty phony edges for target orderingBrad King2018-04-263-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.9.0-rc1~230^2~2 (ninja: break unnecessary target dependencies, 2017-04-17) we unconditionally generate a phony edge for target ordering. It is needed in case a later target depends on it. However, if the phony edge has no inputs then `ninja -d explain` prints: ninja explain: output ... of phony edge with no inputs doesn't exist Furthermore the phony edge's output is considered dirty and can cause dependents to be incorrectly considered dirty. Avoid this by always generating at least one input to the target ordering phony edges. If we have no real dependencies just use a path that always exists. Fixes: #17942
* | Merge topic 'vs-dedup-custom-commands'Brad King2018-04-254-0/+31
|\ \ | | | | | | | | | | | | | | | | | | | | | f59c33a763 VS: Generate a custom command only in the least dependent target d58d4daa6b cmVisualStudio10TargetGenerator: Use cmLocalVisualStudio10Generator Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1889
| * | VS: Generate a custom command only in the least dependent targetFujii Hironori2018-04-234-0/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a custom command is assigned to multiple targets, generate the build rule only in the least-dependent `.vcxproj` file. Otherwise MSBuild will run the command on the first build of a dependent target even if its dependencies already brought the command up to date (in order to populates its build log). Generate targets in least-to-most-dependent order, and assign a custom command to the least dependent target. Added cmLocalVisualStudio10Generator::GenerateTargetsDepthFirst to call cmVisualStudio10TargetGenerator::Generate in least-dependent order. Moved SourcesVisited from cmVisualStudio10TargetGenerator to cmLocalVisualStudio10Generator to avoid attaching a custom command to multiple targets among the local generator. Fixes: #16767
* | | Merge topic 'Genex-TARGET_GENEX_PROPERTY'Brad King2018-04-2426-0/+219
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 4d15046edd Genex: Add $<TARGET_GENEX_EVAL:...> and $<GENEX_EVAL:...> Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1984
| * | | Genex: Add $<TARGET_GENEX_EVAL:...> and $<GENEX_EVAL:...>Marc Chevrier2018-04-2326-0/+219
| | |/ | |/| | | | | | | Fixes: #17884
* | | Merge topic 'reorder-sys-includes'Brad King2018-04-244-0/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 76ad2ecb50 Order SYSTEM include directories after non-system directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1968
| * | | Order SYSTEM include directories after non-system directoriesEphi Sinowitz2018-04-234-0/+7
| |/ / | | | | | | | | | | | | | | | | | | An effect of the `-isystem` flag is to search the directory after those specified via `-I` flags. Make behavior more consistent on compilers that do not have any `-isystem` flag by explicitly moving system include directories to the end.
* | | Merge topic 'FindMatlab/mcr-compatibility'Brad King2018-04-249-58/+146
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 59fb9e89b2 FindMatlab: Matlab Runtime Compiler support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1970
| * | | FindMatlab: Matlab Runtime Compiler supportRaffi Enficiaud2018-04-239-58/+146
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | * Determining automatically the MCR version on OSX and Windows * Distinguishing between MCR and Matlab * Specific tests for the MCR * mexext on windows does not work properly: the mexext is hardcoded * Doc updates for the MCR Fixes: #16487
* | | Merge topic 'fortran-submodule-depends'Brad King2018-04-238-58/+82
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b1f95e5b14 Fortran: Extend submodule test with great-grandchild 402735314e Fortran: Add support for submodule dependencies 62538b2c4c Fortran: Refactor to treat .mod extension as part of module name Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Izaak Beekman <contact@izaakbeekman.com> Merge-request: !1989
| * | | Fortran: Extend submodule test with great-grandchildBrad King2018-04-205-0/+23
| | | | | | | | | | | | | | | | | | | | Name the module using CamelCase to test lower-case file name conversion. Also add coverage of existing "sibling" module.
| * | | Fortran: Add support for submodule dependenciesBrad King2018-04-206-58/+59
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.7.0-rc1~73^2~1 (Fortran: Add support for submodule syntax in dependency scanning, 2016-09-05) we support parsing Fortran sources that use submodule syntax, but it left addition of `.smod` dependencies to future work. Add it now. The syntax submodule (module_name) submodule_name means the current source requires `module_name.mod` and provides `module_name@submodule_name.smod`. The syntax submodule (module_name:submodule_name) nested_submodule_name means the current source requires `module_name@submodule_name.smod` provides `module_name@nested_submodule_name.smod`. Fixes: #17017
* | | Merge topic 'grammar_typo_fixes'Brad King2018-04-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 8e841a473f Cleanup: Fix typos and grammar in docs and code Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1996
| * | | Cleanup: Fix typos and grammar in docs and codeCraig Scott2018-04-221-1/+1
| |/ / | | | | | | No functional changes, just docs, comments and error messages.
* | | Merge topic 'add_compile_definitions'Brad King2018-04-233-0/+33
|\ \ \ | |/ / |/| | | | | | | | | | | | | | cb83314e65 add_compile_definitions: add new command Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1988
| * | add_compile_definitions: add new commandMarc Chevrier2018-04-203-0/+33
| | | | | | | | | | | | | | | | | | | | | This command manages preprocessor definitions at directory level and supports generator expressions. Fixes: #15374
* | | Merge topic 'vs-sdk-dirs'Brad King2018-04-203-0/+100
|\ \ \ | |/ / |/| | | | | | | | | | | | | | 6ec3e880e7 VS: Add variables to set SDK directories in vcxproj files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1965
| * | VS: Add variables to set SDK directories in vcxproj filesBastien Schatt2018-04-193-0/+100
| | | | | | | | | | | | | | | | | | | | | Create `CMAKE_VS_SDK_*_DIRECTORIES` variables to tell the VS generator how to populate fields in `.vcxproj` files that specify SDK directories. Fixes: #17908
* | | Merge topic 'FindJPEG-imported-targets'Brad King2018-04-195-1/+45
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 87f2cf3b1c FindJPEG: Add imported target support and full test 13952a3b7f FindJPEG: Add multi config support and associated docs 1f6649b7d1 FindJPEG: Add version detection and associated test update and docs 8d07408a62 FindJPEG: Cleanup documentation formatting e70da3f0f3 FindJPEG: Clean up whitepaces and lowercase function names Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1974
| * | | FindJPEG: Add imported target support and full testMateusz Loskot2018-04-184-0/+44
| | | |
| * | | FindJPEG: Add version detection and associated test update and docsMateusz Loskot2018-04-171-1/+1
| | | |
* | | | Merge topic 'CheckIncludeFile-required-libs'Brad King2018-04-194-0/+184
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a61ae3fb80 CheckIncludeFiles: Honor CMAKE_REQUIRED_LIBRARIES 391a5837ee cmake_policy: Add undocumented PARENT_SCOPE option to GET 3c47ac5b25 OpenWatcom: Add workaround for lack of error on missing library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1978
| * | | | CheckIncludeFiles: Honor CMAKE_REQUIRED_LIBRARIESBrad King2018-04-183-0/+176
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Other check modules honor this variable, so include file checks should too. Add policy `CMP0075` to enable the behavior in a compatible way. This change was originally made by commit v3.11.0-rc1~108^2 (CheckIncludeFiles: Honor CMAKE_REQUIRED_LIBRARIES, 2017-12-24) but it was reverted by commit v3.11.1~9^2 (Revert "CheckIncludeFiles: Honor CMAKE_REQUIRED_LIBRARIES", 2018-04-04) because the behavior change could affect checks in existing projects in an incompatible way. Fixes: #9514
| * | | | cmake_policy: Add undocumented PARENT_SCOPE option to GETBrad King2018-04-181-0/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | Policies affecting the behavior of CMake-provided macros and functions need to be able to get the policy setting as of the call site rather than the definition site. Add an undocumented option to do this.
* | | | Android: Add support for NDK r17Brad King2018-04-172-7/+9
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | The `armeabi` ABI is no longer available, so we can no longer use it by default unconditionally. Instead detect all available ABIs and choose the oldest arm ABI that is available. Also update the test suite to account for the lack of `armeabi` support and pass as of Android NDK r17-beta2.
* | | Merge topic 'list-TRANSFORM'Brad King2018-04-1796-0/+589
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | dca2347980 list: Add TRANSFORM sub-command cdae12f8f8 string() Refactoring: creates an helper for REGEX REPLACE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1938
| * | | list: Add TRANSFORM sub-commandMarc Chevrier2018-04-1696-0/+589
| |/ / | | | | | | | | | Issue: #17823
* | | Merge topic 'implicit-lib-gcceh-file'Brad King2018-04-171-0/+6
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | eb0498357f Exclude "libgcc_eh" library files from implicit link libraries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1967
| * | Exclude "libgcc_eh" library files from implicit link librariesBrad King2018-04-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | Extend the fix in commit v3.9.6~1^2 (Restore exclusion of "gcc_eh" from implicit link libraries, 2017-11-07) to also exclude `gcc_eh` libraries referenced by absolute path to the library file. Issue: #17436
* | | Merge topic 'vs-cuda-pdb'Brad King2018-04-164-0/+37
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 134e795fa9 VS: Add workaround for CUDA compiler PDB location Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1960
| * | | VS: Add workaround for CUDA compiler PDB locationBrad King2018-04-134-0/+37
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | The CUDA Toolkit Visual Studio Integration does not honor the `ClCompile.ProgramDataBaseFileName` field when telling `nvcc` how to invoke `cl`. Work around this problem by passing `-Xcompiler=-Fd...` ourselves through `AdditionalOptions`. Fixes: #17647
* | | Merge topic 'test-ExternalData-dedup'Brad King2018-04-162-3/+4
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | bb66cea6c5 Tests: Avoid duplicate rules in ExternalData test Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1958
| * | | Tests: Avoid duplicate rules in ExternalData testBrad King2018-04-132-3/+4
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit v3.7.0-rc1~158^2 (ExternalData: Tolerate files duplicated across multiple targets, 2016-07-07) we added a test case for repeating the same data file reference in three different targets in the same directory in order to exercise its corresponding fix. However, we re-used the top-level `Data.dat` file which is already produced by an unrelated test case. `ninja` diagnoses the duplicate rule. Update the test to use a dedicated data file name for the three-times repeated case to avoid this conflict. It still covers the original purpose of the test.
* | | Merge branch 'backport-fix-explicit-CMakeLists.txt'Brad King2018-04-136-0/+55
|\ \ \ | |/ / |/| |
| * | Restore support for explicitly referenced CMakeLists.txt sourcesBrad King2018-04-136-0/+55
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.11.0-rc1~467^2 (VS,Xcode: Add CMakeLists.txt sources without mutating targets, 2017-10-18) we do not add `CMakeLists.txt` to target sources but instead generate references to them directly. This broke projects that explicitly specify their `CMakeLists.txt` file as a source file because the explicit entry is no longer consolidated with the generated one. Teach the relevant generators to avoid duplicating `CMakeLists.txt` source references and add test cases. Fixes: #17828
* | Merge topic 'variable_watch-on-PARENT_SCOPE'Brad King2018-04-123-0/+18
|\ \ | | | | | | | | | | | | | | | | | | 65198cfd0f variable_watch: trigger on variables set via PARENT_SCOPE Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1948
| * | variable_watch: trigger on variables set via PARENT_SCOPEMatteo Settenvini2018-04-113-0/+18
| | | | | | | | | | | | | | | | | | | | | Make sure that we also trigger variable watches when a variable is set in the parent scope. Fixes: #17827
* | | Merge topic 'FindMatlab-handle-exception'Brad King2018-04-123-3/+44
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ffb1f19191 FindMatlab: add unit tests 44c916b4c8 FindMatlab: always handle uncaught exception Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1946
| * | | FindMatlab: add unit testsRaffi Enficiaud2018-04-093-3/+44
| |/ /