summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/include_directories/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* include_directories: Fix regression in BEFORE option (#15693)Brad King2015-08-211-0/+1
| | | | | | Refactoring in commit 6ed9c7e0 (cmState: Host buildsystem properties for directories, 2015-07-18) broke include_directories(BEFORE). Fix it and add a test case.
* Tests: Fix failures when running under the default install prefix (#15566)Brad King2015-05-141-0/+3
| | | | | | | Fix test cases whose behavior differs when their source or build tree is under CMAKE_INSTALL_PREFIX by setting an install prefix under the build tree. Otherwise they may fail when run under the default install prefix (e.g. /usr/local).
* Tests: Split part of include_directories test to a generic location.Stephen Kelly2015-02-091-141/+0
| | | | | | | | | The moved tests are related to paths in INTERFACE_INCLUDE_DIRECTORIES in general, and when exporting, and covering cases of the install location being within the build or source prefix etc. Other build properties containing paths should have similar tests, so this allows some parameterization while keeping the preparation of the various directory structures.
* Tests: Refactor RunCMake.include_directories to drop RunCMake_TEST_FILEBrad King2014-06-301-16/+24
| | | | | Drop use of RunCMake_TEST_FILE and pass the test file in through a definition in RunCMake_TEST_OPTIONS.
* CMP0052: Test that include dirs in install locations cause no warnings.Stephen Kelly2014-04-171-0/+3
|
* Export: Disallow exported interface includes in src/build tree (#14592).Stephen Kelly2014-04-091-0/+125
| | | | | | | | | | | Allow directories in the source tree or build tree only if the install tree is a subdirectory of the source tree or build tree, as appropriate. Re-use the test files in the RunCMake.include_directories test to run in multiple scenarios. Bump the required CMake version in the test to 3.0 to ensure that the new policy warnings are emitted correctly.
* Export: Test existing behavior of exporting includes with genexes.Stephen Kelly2013-11-261-0/+1
| | | | Test that no warning or error diagnostic is issued for 'good code'.
* genex: Test preprocessing incomplete expressions.Stephen Kelly2013-09-131-0/+1
|
* Export: Process generator expressions from INCLUDES DESTINATION.Stephen Kelly2013-07-311-0/+1
| | | | Configuration sensitive expressions are not permitted.
* install: Remove error condition using INCLUDES DESTINATION without EXPORT.Stephen Kelly2013-07-291-1/+0
| | | | | | | | | | | | Commit 650e61f8 (Add a convenient way to add the includes install dir to the INTERFACE., 2013-01-05) introduced an error case for using the install(TARGETS) command with specified INCLUDES DESTINATION, but no specified EXPORT set. It is convenient to use a variable to set the various destinations for different outputs (as KDE does), and some targets such as executables are installed but not exported. This was triggering the error case, but as it is a common case, remove the error.
* Add a convenient way to add the includes install dir to the INTERFACE.Stephen Kelly2013-07-241-0/+1
| | | | | | | Export the INCLUDES DESTINATION without appending to the INTERFACE_INCLUDE_DIRECTORIES of the target itself. That way, a target can be exported multiple times with different INCLUDES DESTINATION without unintended cross-pollution of export sets.
* Error on relative path in INCLUDE_DIRECTORIES target property.Stephen Kelly2013-05-211-0/+1
| | | | | Add policy CMP0021 to preserve existing behavior in projects expecting it from earlier CMake versions.
* Error if linked target has relative paths in INTERFACE_INCLUDE_DIRECTORIESStephen Kelly2013-03-261-0/+1
| | | | | | | | | We can do this check only if the TargetName is non-empty, which means that we're evaluating INTERFACE_INCLUDE_DIRECTORIES from a linked dependency which was set using target_link_libraries. It is possible to have relative paths in INCLUDE_DIRECTORIES already in CMake 2.8.10.2, so that part will require a policy to fix.
* Report an error on IMPORTED targets with a faulty INTERFACEStephen Kelly2013-03-261-0/+1
| | | | | | | | | | It is considered an error if the INTERFACE_INCLUDE_DIRECTORIES contains a directory which does not exist, which indicates a programmer error by the upstream, or a packaging error. One of the RunCMake.CompatibleInterface tests also needs to be updated due to this change. Non-existant includes were used in the test, but are not needed.
* install(EXPORT): Ensure clean INTERFACE_INCLUDE_DIRECTORIESStephen Kelly2013-03-261-0/+3
| | | | | | | | | | Check that source and binary directories are not part of the INTERFACE_INCLUDE_DIRECTORIES for installed IMPORTED targets. This is limited to directories which do not contain generator expressions to evaluate. Such paths can only be checked at time of use of the imported target, which will be done in a follow up patch.
* Whitelist target types in target_{include_directories,compile_definitions}Stephen Kelly2013-02-081-0/+1
| | | | | Setting include directories or compile definitions on a target created with add_custom_target does not make sense.
* Add a way to print the origins of used include directories.Stephen Kelly2013-01-031-0/+1
|
* GenEx: Fix reporting about not-found include directories and libraries.Stephen Kelly2012-10-171-0/+3
This fixes a regression introduced in commit 290e92ad (Move GetIncludeDirectories to cmGeneratorTarget, 2012-09-16) which loops over cmGeneratorTargets before they get created, so the container is empty.