summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'ios-app-bundle-layout'Brad King2015-08-243-0/+81
|\ | | | | | | | | 744e6c49 Fix iOS Bundle layouts (#15669)
| * Fix iOS Bundle layouts (#15669)Gregor Jasny2015-08-243-0/+81
| | | | | | | | | | | | | | | | | | | | In contrast to Mac OS X App bundle layout the iOS one lacks the Contents/MacOSX structure. See also the Bundle Structures documentation in Mac Developer Library: https://developer.apple.com/library/mac/documentation/CoreFoundation/Conceptual/CFBundles/BundleTypes/BundleTypes.html For now detect iOS targets by checking the SDK name/path.
* | include_directories: Fix regression in BEFORE option (#15693)Brad King2015-08-213-0/+6
| | | | | | | | | | | | Refactoring in commit 6ed9c7e0 (cmState: Host buildsystem properties for directories, 2015-07-18) broke include_directories(BEFORE). Fix it and add a test case.
* | Merge topic 'modules-no-soname'Brad King2015-08-218-31/+82
|\ \ | | | | | | | | | | | | | | | f799ffb5 Do not set SONAME for MODULE library targets (#15705) 899458ab Tests: Cover NO_SONAME property for SHARED libraries
| * | Do not set SONAME for MODULE library targets (#15705)Felix Geyer2015-08-203-31/+12
| | | | | | | | | | | | | | | The SONAME field is only useful for shared libraries that application link against.
| * | Tests: Cover NO_SONAME property for SHARED librariesBrad King2015-08-205-0/+70
| |/ | | | | | | | | | | | | | | This property was added by commit v2.8.9~204^2~2 (Support building shared libraries or modules without soname, 2012-04-22). A test for using the property on MODULE libraries was added by commit v2.8.9~204^2~1 (Test NO_SONAME property, 2012-04-23). Add such a test for SHARED libraries too.
* | Merge topic 'OUTPUT_NAME-genex-no-recursion'Brad King2015-08-215-0/+10
|\ \ | | | | | | | | | | | | 3c37d264 cmGeneratorTarget: Avoid recursion in GetOutputName method
| * | cmGeneratorTarget: Avoid recursion in GetOutputName methodRobert Goulet2015-08-205-0/+10
| |/ | | | | | | | | | | Since support for generator expressions was added to OUTPUT_NAME it is possible for project code to cause recursion in this method by using a $<TARGET_FILE> genex. Detect and reject such cases.
* | get_filename_component: Teach new BASE_DIR parameter.James Johnston2015-08-181-0/+33
|/ | | | | | In the get_filename_component command, add a new BASE_DIR parameter to use with the ABSOLUTE and REALPATH options. This will be used when finding an absolute path from a relative path.
* Merge topic 'FindOpenSSL-imported-targets'Brad King2015-08-174-0/+49
|\ | | | | | | | | | | 75e3a8e8 FindOpenSSL: Provide imported targets OpenSSL::{SSL,Crypto} 79a36437 FindOpenSSL: Revise and format module documentation
| * FindOpenSSL: Provide imported targets OpenSSL::{SSL,Crypto}Konstantin Podsvirov2015-08-134-0/+49
| |
* | Merge topic 'use-generator-target'Brad King2015-08-172-0/+11
|\ \ | |/ |/| | | | | 9b449e9c cmComputeLinkInformation: Lookup a target only if we have one
| * cmComputeLinkInformation: Lookup a target only if we have oneBrad King2015-08-132-0/+11
| | | | | | | | | | | | | | | | | | The change in commit 27252b24 (cmComputeLinkInformation: Simplify generator object access, 2015-08-02) broke the conditional use of a target introduced in commit 41abdc17 (cmGeneratorTarget: Move GetSOName from cmTarget, 2015-08-04). Restore the conditional lookup. Add a test case that hacks platform information variables to trigger this code everywhere.
* | Merge topic 'OUTPUT_DIRECTORY-genex'Brad King2015-08-138-3/+62
|\ \ | | | | | | | | | | | | | | | d25819bc Add generator expression support to OUTPUT_DIRECTORY target properties e36a05fd cmTarget: Detect and diagnose recursion in GetOutputInfo
| * | Add generator expression support to OUTPUT_DIRECTORY target propertiesRobert Goulet2015-08-128-3/+62
| | | | | | | | | | | | | | | | | | | | | If {ARCHIVE,LIBRARY,RUNTIME}_OUTPUT_DIRECTORY is set with a genex then do not add the per-config subdirectory on multi-config generators. This will allow projects to use $<CONFIG> to place the per-config part of the directory path somewhere other than the end.
* | | Allow LINK_SEARCH_{START,END}_STATIC props to have default values.Chuck Atkins2015-08-133-0/+79
| | | | | | | | | | | | | | | | | | Use the CMAKE_LINK_SEARCH_START_STATIC and CMAKE_LINK_SEARCH_END_STATIC variables to initialize the LINK_SEARCH_START_STATIC and LINK_SEARCH_END_STATIC target properties respectively.
* | | Merge topic 'tests-use-CMAKE_MAKE_PROGRAM'Brad King2015-08-122-0/+12
|\ \ \ | | | | | | | | | | | | | | | | | | | | c180f0cb Tests: Fix CMAKE_MAKE_PROGRAM selection in FortranC.Flags test 586b2e5e Tests: Fix CMAKE_MAKE_PROGRAM selection in CMakeOnly tests
| * | | Tests: Fix CMAKE_MAKE_PROGRAM selection in FortranC.Flags testBrad King2015-08-111-0/+6
| | | | | | | | | | | | | | | | Use the explicitly-tested make program, if any.
| * | | Tests: Fix CMAKE_MAKE_PROGRAM selection in CMakeOnly testsBrad King2015-08-111-0/+6
| |/ / | | | | | | | | | Use the explicitly-tested make program, if any.
* | | target_include_directories: Support relative SYSTEM include dirs (#15464)Gregor Jasny2015-08-111-0/+10
|/ /
* | Merge topic 'fix-get-filename-component'Brad King2015-08-102-1/+78
|\ \ | | | | | | | | | | | | | | | | | | d035e968 get_filename_component: Fix bug where CACHE was ignored. 38ed5866 get_filename_component: Added initial tests for PROGRAM component. 772ca69f get_filename_component: Tests now check for proper CACHE usage.
| * | get_filename_component: Fix bug where CACHE was ignored.James Johnston2015-08-061-0/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If PROGRAM_ARGS is provided to get_filename_component, fix bug where the command failed to honor the CACHE argument. Added test cases to RunCMake.get_filename_component that fail when the bug is not fixed to prevent regressions. Signed-off-by: James Johnston <johnstonj.public@codenest.com>
| * | get_filename_component: Added initial tests for PROGRAM component.James Johnston2015-08-061-0/+12
| | | | | | | | | | | | | | | | | | | | | The RunCMake.get_filename_component test now tests basic functionality of the PROGRAM component argument of get_filename_component. Signed-off-by: James Johnston <johnstonj.public@codenest.com>
| * | get_filename_component: Tests now check for proper CACHE usage.James Johnston2015-08-062-1/+34
| |/ | | | | | | | | | | | | | | The RunCMake.get_filename_component test was improved to assert that each test variable outputted by get_filename_component is or is not a cache variable, as per the particular test. Signed-off-by: James Johnston <johnstonj.public@codenest.com>
* | Merge topic 'change-nmake-env-warning'Brad King2015-08-107-0/+152
|\ \ | | | | | | | | | | | | afeb4eb2 nmake/jom: Only warn about bad VS environment if compiler not found.
| * | nmake/jom: Only warn about bad VS environment if compiler not found.James Johnston2015-08-067-0/+152
| |/ | | | | | | | | | | | | nmake and jom generators no longer warn about missing INCLUDE/LIB environment variables unless the C/CXX compiler cannot be found. This is useful if the user does not want to use these generators with the Visual C++ compiler, or they do not want to enable any language.
* | Reject TARGET_PDB_FILE for imported targets instead of crashingBrad King2015-08-064-0/+12
|/ | | | Reported-by: Justin Borodinsky <justin.borodinsky@gmail.com>
* Merge topic 'cpack-rpm-documentation-fixes'Brad King2015-08-0611-2/+155
|\ | | | | | | | | | | | | | | | | | | 94226751 Tests/RunCMake/CPack: Add dependencies tests 105011e0 Tests/RunCMake/CPack: Bump verify result cmake version d882d477 Tests/RunCMake/CPack/DEB: Add getPackageInfo helper function 145735b7 Tests/RunCMake/CPack: Enable CXX language in tests e26f53a8 CPack/RPM: missing PACKAGE_CONFLICTS documentation 64aacb24 CPack/RPM: undocumented variables
| * Tests/RunCMake/CPack: Add dependencies testsDomen Vrankar2015-08-068-0/+143
| | | | | | | | | | Add tests for RPM and DEB package test for currently supported dependency features (requires, provides, conflicts, ...).
| * Tests/RunCMake/CPack: Bump verify result cmake versionDomen Vrankar2015-08-061-1/+1
| | | | | | | | | | Bumped version to current cmake version so that we always use latest policies.
| * Tests/RunCMake/CPack/DEB: Add getPackageInfo helper functionDomen Vrankar2015-08-061-0/+10
| | | | | | | | | | getPackageInfo helper function returns package info for provided deb package file
| * Tests/RunCMake/CPack: Enable CXX language in testsDomen Vrankar2015-08-061-1/+1
| | | | | | | | | | Enable CXX language for CPack tests so that they may compile binaries if needed.
* | Merge topic 'ninja-LINK_DEPENDS'Brad King2015-08-061-1/+1
|\ \ | | | | | | | | | | | | 43c94281 Ninja: Honor the LINK_DEPENDS target property (#14796)
| * | Ninja: Honor the LINK_DEPENDS target property (#14796)Brad King2015-08-051-1/+1
| | |
* | | Merge topic 'cmState-policies'Brad King2015-08-0611-0/+40
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 757a1f54 cmState: Move PolicyState from cmMakefile. 52dbe654 cmState: Record the end position of each directory. 65a5e0c6 cmLinkedTree: Add Clear API. 34835433 cmState: Add Type for policy scope. af0de01c cmState: Remove call stack parent tracking. 6ae8b30b cmMakefile: Move policy barriers inside cmState scopes. a5fc17b5 cmMakefile: Re-order policy entries and barriers. 0a01e6c6 cmState: Add Snapshot Type accessor. f0005bb4 Tests: Verify generate-time policy scope behavior.
| * | | Tests: Verify generate-time policy scope behavior.Stephen Kelly2015-08-0111-0/+40
| | | | | | | | | | | | | | | | | | | | If some day there are no policies checked through the makefile at generate time, this can be fixed.
* | | | Merge topic 'fix-missing-subdir-error'Brad King2015-08-0610-0/+25
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | c4d2f64f add_subdirectory: Fix error message on missing CMakeLists.txt (#15680)
| * | | add_subdirectory: Fix error message on missing CMakeLists.txt (#15680)Brad King2015-08-0410-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit v3.3.0-rc1~76^2 (cmMakefile: Handle CMP0014 before configuring the generator, 2015-05-14) accidentally left the file name "/CMakeLists.txt" in the error message. Remove it and add a test case.
* | | | UseJava: Teach add_jar to support file syntax for sourcesMarc Chevrier2015-08-042-4/+21
| |_|/ |/| |
* | | Merge topic 'if-test'Brad King2015-08-0311-0/+46
|\ \ \ | | | | | | | | | | | | | | | | | | | | 14e49ed1 if: Add "TEST <test>" condition 623dcc85 ExternalProject: Avoid if() auto-dereference of a "TEST" variable
| * | | if: Add "TEST <test>" conditionMatt McCormick2015-08-0311-0/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if(TEST TestNameThatExists) will return true if a test with the name TestNameThatExists has been added with add_test. The syntax is similar to if(TARGET TargetName). Since use of "TEST" as an argument to if() could previously be interpreted as a non-keyword argument, add policy CMP0064 to treat it as a keyword as NEW behavior.
* | | | Merge topic 'update-kwsys'Brad King2015-08-031-4/+9
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | da98b896 Tests: In CTestTest2 skip the kwsys.testProcess-10 test that leaks 129640f2 CTestCustom: Ignore kwsys.testProcess-10 for MemCheck as KWSys does d0915bc8 Merge branch 'upstream-kwsys' into update-kwsys 1feafc64 KWSys 2015-07-30 (f63febb7)
| * | | Tests: In CTestTest2 skip the kwsys.testProcess-10 test that leaksBrad King2015-07-311-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test intentionally leaks memory so KWSys excludes it from MemCheck. However, when CTestTest2 runs under our own MemCheck then valgrind may recursively check tests run by ctest_test() calls in our test.cmake script. Teach these calls to exluce testProcess-10 too. Also read the KWSys CTestCustom.cmake file so ctest_memcheck() will ignore the test too.
* | | | cmake: Add -W options to control deprecation warnings and errorsMichael Scott2015-07-2918-0/+76
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactor the -Wdev and -Wno-dev to use a generic -W parser that follows the GCC pattern. Include support for setting CMAKE_ERROR_DEPRECATED and CMAKE_WARN_DEPRECATED via the deprecated warning. Add -Werror=dev and -Wno-error=dev options so that dev warning options are in line with deprecated warning options. Use a new CMAKE_SUPPRESS_DEVELOPER_ERRORS internal cache entry to store the above new dev options persistently. Add tests for new options and updated cmake documentation and release notes to list new options.
* | | Merge topic 'trace-expand'Brad King2015-07-273-0/+6
|\ \ \ | | | | | | | | | | | | | | | | 594bafe5 cmake: add --trace-expand option
| * | | cmake: add --trace-expand optionBen Boeckel2015-07-233-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The --trace option is helpful, but sometimes, what you're looking for is deep under many layers of function calls and figuring out what instance of the function call you're looking at is tedious to determine (usually involving patching and message()). Instead, add a --trace-expand option to trace while expanding commands into what CMake actually sees.
* | | | Merge topic 'refactor-cmMakefile-properties'Brad King2015-07-276-0/+23
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bbb507ae cmMakefile: Move the InitializeFromParent method 6ed9c7e0 cmState: Host buildsystem properties for directories. 8f0a5d84 cmState: Fix compilation on IBM XL compiler 9644a2d1 cmAlgorithms: Add cmMakeReverseIterator. 1e77de74 cmMakefile: Don't clear buildsystem properties. c1bf1a59 CompileDefinitions: Add unit test for setting empty content.
| * | | | CompileDefinitions: Add unit test for setting empty content.Stephen Kelly2015-07-226-0/+23
| |/ / /
* | | | Tests: Extend BuildDepends test to cover OBJECT_DEPENDSBrad King2015-07-224-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The actual file timestamp dependency is known to not work on Visual Studio or Xcode generators. Tolerate such failure for these generators (Tests/CustomCommand already covers using OBJECT_DEPENDS to pull a custom command into a target, and that still works with these generators).
* | | | Merge topic 'export-no-custom-target'Brad King2015-07-229-3/+13
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | 7e9f908e export: Reject custom target exports earlier (#15657) 3b09398a Tests: Teach RunCMake.export to enable languages only when needed