summaryrefslogtreecommitdiffstats
path: root/Tests
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Create $CACHE{VAR} syntaxBrad King2008-09-251-0/+14
| | | | | This syntax allows reading of cache entries even when variables of the same name have been defined in the local scope. See issue #7715.
* ENH: Add version comparison to if() commandBrad King2008-09-101-0/+17
| | | | | | Provide VERSION_LESS, VERSION_EQUAL, and VERSION_GREATER operators in the if() command. This simplifies component-wise comparison of version numbers in the form "major[.minor[.patch[.tweak]]]".
* ENH: Improve find_package version numberingBrad King2008-09-105-9/+46
| | | | | | | | Make the number of version components specified explicitly available. Set variables for unspecified version components to "0" instead of leaving them unset. This simplifies version number handling for find- and config-modules. Also support a fourth "tweak" version component since some packages use them.
* PERF: Test takes too long when recursing for executable files and when doing ↵David Cole2008-09-091-1/+1
| | | | recursive prerequisite analysis. Put it back the way it was. Add another test later to do the recursive prerequisite analysis.
* BUG: fix test to work with new restrictions that cross compiling must be onBill Hoffman2008-09-091-1/+3
|
* ENH: Add BundleUtilities.cmake and supporting changes to ↵David Cole2008-09-061-1/+1
| | | | GetPrerequisites.cmake. Function copy_and_fixup_bundle in BundleUtilities helps to make standalone bundle applications on the Mac by pulling in prerequisite non-system libraries and frameworks as needed. Uses otool and install_name_tool to do analysis and fixups. Project-specific hooks for deciding where to embed libraries and for resolving item names into full path file names are also provided.
* BUG: Fix issue #7046 - make sure extensionless headers and resource files ↵David Cole2008-09-054-3/+13
| | | | work with the Xcode generator. Also fix incorrect mappings in the lastKnownFileType code. Add some extensionless files to the Framework test.
* ENH: Allow a custom list of debug configurationsBrad King2008-09-042-2/+11
| | | | | | Create a DEBUG_CONFIGURATIONS global property as a way for projects to specify which configuration names are considered to be 'debug' configurations.
* ENH: Add indirect dependency to Carbon and call a Carbon function from ↵David Cole2008-09-023-2/+31
| | | | executable. This will allow detecting broken dependency chaining for '-framework blah' style lib dependencies.
* BUG: Fix Unset test on VS 6Brad King2008-08-302-2/+3
| | | | | Visual Studio 6 does not recognize .cc as a C++ extension by default. Simplify the test to be C-only and use a .c extension.
* ENH: Changes that allow configuring/building BundleTest test separately from ↵David Cole2008-08-272-5/+5
| | | | the main CMake build. (Eliminate reference to CMake_SOURE_DIR.)
* ENH: Add unset() command.Brad King2008-08-253-0/+45
| | | | | | | | This introduces the unset() command to make it easy to unset CMake variables, environment variables, and CMake cache variables. Previously it was not even possible to unset ENV or CACHE variables (as in completely remove them). Changes based on patch from Philip Lowman. See issue #7507.
* ENH: Allow custom limit on object file path lengthBrad King2008-08-211-2/+5
| | | | | | | | Some native build tools, particularly those for cross compiling, may have a limit on the length of the full path to an object file name that is lower than the platform otherwise supports. This change allows the limit to be set by the project toolchain file through the variable CMAKE_OBJECT_PATH_MAX.
* ENH: Add if(TARGET) commandBrad King2008-08-206-0/+63
| | | | | | | | | | It is useful to be able to test if a target has been created. Often targets are created only inside conditions. Rather than storing the result of the condition manually for testing by other parts of the project, it is much easier for the other parts to just test for the target's existence. This will also be useful when find-modules start reporting results with IMPORTED targets and projects want to test if a certain target is available.
* ENH: Add test_clean target to wipe out testsBrad King2008-08-192-0/+60
| | | | | | We frequently need to wipe out all the CMake test build directories in order to run tests from scratch. This change adds a test_clean custom target to remove all these directories for out-of-source builds.
* ENH: Add UNKNOWN type for IMPORTED librariesBrad King2008-08-182-2/+10
| | | | | | | | | | | | | | | When creating an IMPORTED target for a library that has been found on disk, it may not be known whether the library is STATIC or SHARED. However, the library may still be linked using the file found from disk. Use of an IMPORTED target is still important to allow per-configuration files to be specified for the library. This change creates an UNKNOWN type for IMPORTED library targets. The IMPORTED_LOCATION property (and its per-config equivalents) specifies the location of the library. CMake makes no assumptions about the library that cannot be inferred from the file on disk. This will help projects and find-modules import targets found on disk or specified by the user.
* ENH: Make link interface mode more distinctBrad King2008-08-181-1/+2
| | | | | | | | | Rename the recently added INTERFACE mode of the target_link_libraries() command to LINK_INTERFACE_LIBRARIES. This makes it much more distinct from a normal call to the command, and clearly states its connection to the property of the same name. Also require the option to appear immediately after the target name to make it a mode rather than an option.
* ENH: Add cmake_policy(GET) command modeBrad King2008-08-183-0/+15
| | | | | | | It is likely that projects or CMake modules in the future will need to check the value of a policy setting. For example, if we add a policy that affects the results of FindXYZ.cmake modules, the module code will need to be able to check the policy.
* STYLE: extend documentation for RETURN() a bitAlexander Neundorf2008-08-162-0/+11
| | | | | | ENH: add a test for calling RETURN() in an included file Alex
* BUG: Fix ExportImport test on VS6Brad King2008-08-123-2/+10
| | | | | Visual Studio 6 does not support per-target object files, so just use two separate source file names in this case.
* ENH: Test target_link_libraries INTERFACE optionBrad King2008-08-116-2/+63
|
* ENH: Test fake circular dependency caseBrad King2008-08-074-0/+27
| | | | | | A recent change fixed a case in which CMake incorrectly diagnosed a circular dependency involving a non-linkable executable target. This adds a test for that case.
* BUG: fix endif()Alexander Neundorf2008-08-061-1/+1
| | | | Alex
* ENH: add simple tests to test that the extra generators don't crashAlexander Neundorf2008-08-061-0/+49
| | | | Alex
* ENH: Test relative path custom command outputBrad King2008-08-051-1/+11
| | | | | | | As of CMake 2.6 a custom command output specified by relative path is placed in the build tree. This adds a test to make sure other references to the output are hooked up correctly, fixing a bug in CMake 2.6.1.
* ENH: fix build with Xcode project was missingBill Hoffman2008-07-311-1/+2
|
* ENH: Add test for the new CPack BundleGenerator. Thanks to Tim Shead for the ↵David Cole2008-07-307-0/+78
| | | | patch. See issue #7170 for more details.
* ENH: remove test that does not work on all compilersBill Hoffman2008-07-161-32/+0
|
* ENH: add a test for bug 7316Bill Hoffman2008-07-151-0/+33
|
* ENH: Use new cpack_add_component macro (and friends) from the ↵David Cole2008-07-081-48/+28
| | | | CPackComponents test. Thanks again to Doug Gregor!
* ENH: add get_test_property to bootstrap so bootstrap builds test the same as ↵Bill Hoffman2008-07-071-10/+0
| | | | non-bootstrap builds
* BUG: Replace non-bootstrap command with macroBrad King2008-07-031-0/+9
| | | | | - The GET_TEST_PROPERTY command does not exist during bootstrap. - Instead of lots of conditionals, replace it with a macro.
* ENH: Remove condition on use of CMake 2.4 commandsBrad King2008-07-031-39/+30
| | | | | | - Commands SET_TESTS_PROPERTIES and GET_TEST_PROPERTY exist in CMake 2.4, which is now required. - Therefore we need not check before using them.
* COMP: Don't set properties on a non-existing testBrad King2008-07-031-1/+1
| | | | | - Test SubProject-Stage2 is conditionally created. - Set properties on it only if it exists.
* ENH: add initial ctest -j featureBill Hoffman2008-07-031-0/+9
|
* ENH: support parenthesis as arguments and in conditionals feature request #6191Ken Martin2008-06-269-0/+48
|
* BUG: Avoid running the new CPackComponents test on Windows unless the NSIS ↵David Cole2008-06-191-2/+22
| | | | installer is available.
* BUG: Be more specific about the expected file name of the installer. (So we ↵David Cole2008-06-181-2/+2
| | | | don't get mylibapp.exe in our GLOB results in make based build trees where the built exes end up in the same directory as the CPack installers...)
* ENH: Add patch for feature request #6847 - CPack components for NSIS and ↵David Cole2008-06-178-43/+208
| | | | PackageMaker installers. Thanks to Doug Gregor for all the hard work involved with implementing this patch! Also added new test CPackComponents that is conditionally executed only when NSIS or PackageMaker installer builders are available.
* ENH: try turning this on againBill Hoffman2008-06-171-1/+1
|
* ENH: turn this off until it passes on all systemsBill Hoffman2008-06-171-1/+1
|
* ENH: add a project nameBill Hoffman2008-06-171-1/+1
|
* ENH: fix find module stuff for testBill Hoffman2008-06-161-0/+1
|
* ENH: add test which executes all FindXXX.cmake modulesAlexander Neundorf2008-06-163-0/+34
| | | | Alex
* ENH: Add test for new find_* command HINTS option.Brad King2008-06-095-0/+25
|
* BUG: Fix CMake.FindBase test to normalize paths before comparing.Brad King2008-06-081-0/+4
| | | | | | - Previously the find_* commands did not normalize the search paths - The recent refactoring enabled such normalization - The FindBase test must also normalize before comparing paths
* BUG: Fix new custom command with make-var expansion test on VS6. The VS6 ↵Brad King2008-06-051-2/+8
| | | | IDE adds some extra characters to the variable value during expansion.
* ENH: Add test for make variable replacement in a custom command with the ↵Brad King2008-06-042-0/+14
| | | | VERBATIM option.
* ENH: Remove SKIP_RULE_DEPENDS option from add_custom_command()Brad King2008-06-023-11/+1
| | | | | | | | - Option was recently added but never released. - Custom commands no longer depend on build.make so we do not need the option. - Rule hashes now take care of rebuilding when rules change so the dependency is not needed.
* ENH: Update BuildDepends test to check #include lines with macros.Brad King2008-05-145-12/+75
| | | | | | | - Tests IMPLICIT_DEPENDS_INCLUDE_TRANSFORM properties. - See issue #6648. - Works without help in VS IDEs due to native dependency handling. - Xcode needs help to rebuild correctly.