summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic '14335-duplicate-else'Brad King2017-03-2213-0/+44
|\ | | | | | | | | | | | | edac95b9 cmIfCommand: Reject duplicate else() and misplaced elseif() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !594
| * cmIfCommand: Reject duplicate else() and misplaced elseif()Gregor Jasny2017-03-2213-0/+44
| | | | | | | | Closes: #14335
* | Merge topic 'add-CheckIPOSupported-module'Brad King2017-03-2222-0/+89
|\ \ | | | | | | | | | | | | | | | | | | | | | 6c832674 Tests for 'CheckIPOSupported' module fdb2ba25 CheckIPOSupported: New module to check for compiler/cmake IPO support Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !558
| * | Tests for 'CheckIPOSupported' moduleRuslan Baratov2017-03-2122-0/+89
| | |
* | | Merge topic 'module-def-and-WINDOWS_EXPORT_ALL_SYMBOLS'Brad King2017-03-225-2/+26
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 075f6454 Support WINDOWS_EXPORT_ALL_SYMBOLS with `.def` files 21c4ec4f cmGlobalVisualStudioGenerator: Simplify __create_def command generation 24361a45 bindexplib: Add support for parsing and integrating `.def` files 845c4824 bindexplib: Add method for parsing and integrating `.def` files 4f90e793 bindexplib: Revise coding style of CMake-specific methods Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !581
| * | Support WINDOWS_EXPORT_ALL_SYMBOLS with `.def` filesBrad King2017-03-215-2/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `WINDOWS_EXPORT_ALL_SYMBOLS` target property exports all symbols found in object files explicitly given to the linker. However, the linker may also find additional symbols in dependencies and copy them into the linked binary (e.g. from `msvcrt.lib`). Provide a way to export an explicit list of such symbols by adding a `.def` file as a source file. Fixes: #16473
* | | Merge topic 'geh-visibility-flag'Brad King2017-03-201-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 9eb05b48 GenerateExportHeader: always fill in _EXPORT macros Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !36
| * | | GenerateExportHeader: always fill in _EXPORT macrosBen Boeckel2017-03-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `_EXPORT` and `_NO_EXPORT` macros should always be made properly because the `<LANG>_VISIBILITY_PRESET` properties are controlled independently of this module. One case where this breaks compatibility is where a project was setting `USE_COMPILER_HIDDEN_VISIBILITY=OFF` and then marking a symbol used outside of the library with `_NO_EXPORT` which is a contridiction.
* | | | CPack/RPM: handle extra slashesDomen Vrankar2017-03-134-0/+61
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | Extra slashes in some locations can cause errors during package generation and can also be present in generated rpm packages causing issues for the package user. Closes #16619
* | | Merge topic 'x32-abi-tests'Brad King2017-03-131-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 7a2de256 Tests: Fix CMakeOnly.find_library test logic for libx32 case Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !573
| * | | Tests: Fix CMakeOnly.find_library test logic for libx32 caseChristian Schmidbauer2017-03-101-1/+1
| | | | | | | | | | | | | | | | | | | | Teach `test_find_library_subst` how to convert `libx32` to `lib` so that the test case actually covers what we intend it to.
* | | | Merge topic 'BundleUtilities-elf-rpath'Brad King2017-03-134-0/+6
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 10fcef02 BundleUtilities: Fix bundle verification on Unix by considering rpaths. ac0786cb BundleUtilities: Teach `get_item_rpaths` to parse ELF binaries a52faa1f file: Add READ_ELF command to parse ELF binaries Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !551
| * | | | file: Add READ_ELF command to parse ELF binariesFlorian Apolloner2017-03-104-0/+6
| | |/ / | |/| | | | | | | | | | | | | | Leave it undocumented for now because we intend to use it internally and it cannot be made available everywhere.
* | | | Merge topic 'xcode-test-schema-generation'Brad King2017-03-132-0/+21
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3fd9f4ab Xcode: Add test for schema generation cf13e495 Xcode: Control schema generation via variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !577
| * | | | Xcode: Add test for schema generationGregor Jasny2017-03-122-0/+21
| | |_|/ | |/| | | | | | | | | | Closes: #15441
* | | | Merge topic 'cuda-vs'Brad King2017-03-137-2/+24
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 65481a60 CUDA: Work around VS limitation in CudaOnly.WithDefs test 8cae24a1 VS: Add more CUDA flag table entries 6ca4f222 VS: Add support for the CUDA_SEPARABLE_COMPILATION property 94255511 VS: Select CUDA code generation architectures 253594d0 VS: Select the CUDA runtime library 4def02a3 VS: Place CUDA host compiler options in proper project file fields 29f07b08 VS: Do not pass CUDA compile options to C compiler b966f489 VS: Do not use absolute paths to CUDA sources ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !566
| * | | CUDA: Work around VS limitation in CudaOnly.WithDefs testBrad King2017-03-102-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | CUDA 8.0 MSBuild rules do not pass `-x cu` to nvcc and so cannot support a custom file extension. Fix our test for this to use a `.cu` extension instead.
| * | | VS: Provide an option to specify CUDA toolset versionBrad King2017-03-105-0/+14
| |/ / | | | | | | | | | | | | | | | | | | | | | The NVIDIA CUDA Toolkit provides MSBuild toolset files for integration with Visual Studio. Multiple versions may be installed so we need a way to tell our VS generators which CUDA toolset to use. Extend the `CMAKE_GENERATOR_TOOLSET` specification to provide a `cuda=...` field specifying the version number.
* | | Merge topic 'test-CPackComponents-fix-NSIS-root'Brad King2017-03-101-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | ae0f7dfa Tests: Fix CPackComponents NSIS install root Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !569
| * | | Tests: Fix CPackComponents NSIS install rootBrad King2017-03-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Without `CPACK_VERBATIM_VARIABLES` a path with backslashes does not make it through `CPackConfig.cmake` properly. Just use forward slashes which NSIS seems to understand anyway.
* | | | Merge topic 'master'Brad King2017-03-0914-5/+36
|\ \ \ \ | | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d9bdcf34 Tests: Add x32 tests to test suite 5b6d354f Help: Add notes for topic 'x32-abi' bed9c73d Modules: Add x32-abi support to hard-coded paths 462cf254 Add support for x32-abi Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !532
| * | | Tests: Add x32 tests to test suiteSteven Newbury2017-03-0814-5/+36
| | | |
* | | | Tests: Pass generator platform and toolset into check for FortranBrad King2017-03-081-0/+2
| |_|/ |/| | | | | | | | | | | Check for a Fortran compiler that supports the same target platform as we are testing.
* | | Merge topic 'fix-static-assert'Brad King2017-03-082-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e2f25d3e WriteCompilerDetectionHeader: fix STATIC_ASSERT Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !555
| * | | WriteCompilerDetectionHeader: fix STATIC_ASSERTDaniel Pfeifer2017-03-062-0/+6
| | | | | | | | | | | | | | | | fixes #16185
* | | | CUDA: Fix spelling of CudaOnly.SeparateCompilation test targetsBrad King2017-03-071-8/+8
| |_|/ |/| |
* | | Autogen: Test: Add mocDepends testSebastian Holtermann2017-03-069-0/+119
| | |
* | | Autogen: Test: Add generated qrc file to rccDepends testSebastian Holtermann2017-03-066-9/+39
| | |
* | | Autogen: Test: Add generated file to moc rerun testSebastian Holtermann2017-03-065-18/+37
| | |
* | | Autogen: Test: Add timestamp comparison to moc rerun testSebastian Holtermann2017-03-063-15/+32
| | |
* | | Autogen: Test: Rename automoc_rerun test to mocRerunSebastian Holtermann2017-03-067-9/+9
| | |
* | | Autogen: Test: Rename autorcc_depends test to rccDependsSebastian Holtermann2017-03-065-8/+8
|/ /
* | Merge topic 'implicit-dir-symlinks'Brad King2017-03-039-0/+74
|\ \ | |/ |/| | | | | | | | | | | 69528fe6 Tests: Add case for RPATH exclusion of symlinks to implicit directories f3102ca8 Merge branch 'backport-implicit-dir-symlinks' into implicit-dir-symlinks c3fb650c cmOrderDirectories: Consider symlinks when checking implicit directories b1a37362 cmOrderDirectories: Factor out implicit directory check
| * Tests: Add case for RPATH exclusion of symlinks to implicit directoriesBrad King2017-03-029-0/+74
| | | | | | | | Issue: #16682
* | Merge topic 'autogen_uic_paths'Brad King2017-03-027-0/+100
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3bf28f5e Autogen: New short InfoGet functions 154d8339 Autogen: Parse enabled feature configuration only ac77fa35 Autogen: Add missing return on error 662ad240 Autogen: Rename and merge moc related methods 5adf22bb Autogen: Add AUTOUIC_SEARCH_PATHS release notes 36fa535d Autogen: Add AUTOUIC_SEARCH_PATHS documentation 6d7c02db Autogen: Add AUTOUIC_SEARCH_PATHS test 1cdf7c1b Autogen: Add AUTOUIC_SEARCH_PATHS support 110c1bf4 Autogen: Add subDirPrefix function db431ecf Autogen: Merge FindInIncludeDirectories into FindIncludeFile
| * | Autogen: Add AUTOUIC_SEARCH_PATHS testSebastian Holtermann2017-03-027-0/+100
| | |
* | | Merge topic 'find_library-custom-lib-suffix'Brad King2017-03-027-1/+14
|\ \ \ | | | | | | | | | | | | | | | | 503f25d4 find_library: Allow custom lib suffix be used as find path
| * | | find_library: Allow custom lib suffix be used as find pathChristian Schmidbauer2017-03-017-1/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new `CMAKE_FIND_LIBRARY_CUSTOM_LIB_SUFFIX` variable to allow use of a custom suffix on `lib` directory names. This is a more general option than that added by commit v3.7.0-rc1~504^2 (Teach find_library and find_package to search lib32 paths, 2016-06-10). It allows the find path to be more deterministic on custom setups. See discussion in #10287 and #15994.
* | | | Merge topic 'csproj_add_free_source_tags'Brad King2017-03-024-0/+38
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | 506207f9 VS: add test for VS_CSHARP_* source file property a202749c VS: add CSharpUtilities module 9588d0a2 VS: add VS_CSHARP_<tagname> sourcefile property
| * | | VS: add test for VS_CSHARP_* source file propertyMichael Stürmer2017-03-014-0/+38
| | |/ | |/|
* | | Merge topic 'FindPkgConfig-version-ops'Brad King2017-03-012-16/+27
|\ \ \ | | | | | | | | | | | | | | | | 8d71fa92 FindPkgConfig: use new version checking "library >= version" syntax
| * | | FindPkgConfig: use new version checking "library >= version" syntaxGautier Pelloux-Prayer2017-02-282-16/+27
| | | | | | | | | | | | | | | | Instead of the deprecated --atleast-version one.
* | | | Merge topic 'export-executable-symbols'Brad King2017-03-013-0/+22
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | 85e08370 bindexplib: Always export executable symbols, even they are also readable
| * | | | bindexplib: Always export executable symbols, even they are also readableZsolt Parragi2017-02-283-0/+22
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously bindexplib discarded read-only non-function symbols even in executable/code sections, but in some specific cases they could still mark functions. An example is provided by nop.asm in the AuoExportDll test, which exports a function only marked by a label. This symbol can be used from C/C++ code, but without this change it would result in an unresolved external symbol when built as a DLL on Windows.
* | | | Merge topic 'find-libarch-not-symlink'Brad King2017-03-013-0/+29
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 6f5aede7 find_library: Skip 'lib => lib<arch>' searches if one symlinks the other e67963ed cmFindLibraryCommand: Refactor AddArchitecturePath logic
| * | | | find_library: Skip 'lib => lib<arch>' searches if one symlinks the otherBrad King2017-02-283-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `FIND_LIBRARY_USE_LIB<arch>_PATHS` global properties ask `find_library` to look in `lib<arch>` directories automatically before corresponding `lib` directories. However, if `lib<arch>` is just a symlink to `lib` (or vice-versa) then we should skip adding the `lib<arch>` path. Such symlinks typically only exist to satisfy software that expects the `lib<arch>` path to be available. Fixes: #16687
| * | | | Merge branch '16449-revert-xcode-system-includes' into releaseBrad King2016-11-282-14/+5
| |\ \ \ \
| * | | | | Android: Add CMAKE_<LANG>_ANDROID_TOOLCHAIN_MACHINEBrad King2016-11-181-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Expose the binutils' machine name (typically used as a prefix on the tool names) publicly. This is expected to match the `gcc -dumpmachine` value. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
| * | | | | Android: Add CMAKE_ANDROID_NDK_TOOLCHAIN_HOST_TAG variableBrad King2016-11-181-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NDK provides prebuilt toolchain files in directories named for the host architecture. The NDK build system calls this `HOST_TAG`. Expose the value publicly for use by clients that need to pass it to external tools. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>
| * | | | | Android: Always set CMAKE_ANDROID_NDK_TOOLCHAIN_VERSIONBrad King2016-11-181-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When this variable is not set by the user or toolchain file, set it to the default selected. This will be useful for client code that needs to pass the value to an external tool that needs to find the same toolchain in the NDK. Leave it empty for a standalone toolchain. Suggested-by: Ruslan Baratov <ruslan_baratov@yahoo.com>