diff options
author | Domen Vrankar <domen.vrankar@gmail.com> | 2017-08-19 20:41:14 (GMT) |
---|---|---|
committer | Domen Vrankar <domen.vrankar@gmail.com> | 2017-08-19 20:41:14 (GMT) |
commit | 80047bd611e2734cfddc11e4f383589cc7acff84 (patch) | |
tree | e9da5bf07e4f8f6ecde83c8af1bee8dd296b2421 /Tests/RunCMake/CPack/README.txt | |
parent | 4bf219a43f1f9cb9746e2d87c917ee1d5051549b (diff) | |
download | CMake-80047bd611e2734cfddc11e4f383589cc7acff84.zip CMake-80047bd611e2734cfddc11e4f383589cc7acff84.tar.gz CMake-80047bd611e2734cfddc11e4f383589cc7acff84.tar.bz2 |
CPack: extend testing framework
Some CPack tests require running
commands after the inclusion of
CPack.cmake and this patch enables
such tests to declare run_after_include_cpack
function which is run after the
inclusion.
Diffstat (limited to 'Tests/RunCMake/CPack/README.txt')
-rw-r--r-- | Tests/RunCMake/CPack/README.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/CPack/README.txt b/Tests/RunCMake/CPack/README.txt index 7c98f69..cf7c02c 100644 --- a/Tests/RunCMake/CPack/README.txt +++ b/Tests/RunCMake/CPack/README.txt @@ -91,6 +91,11 @@ If test will be used for multiple generators but some of them require some generator specific commands then those commands should be added to 'test.cmake' script wrapped with 'if(GENERATOR_TYPE STREQUAL <name_of_the_generator>)'. +NOTE: In some cases (for example when testing CPackComponent.cmake functions) +the test has to run some functions after CPack.cmake is included. In such cases +a function run_after_include_cpack can be declared in test.cmake file and that +function will run after the inclusion of CPack.cmake. + build phase (optional and not available for source package tests) ----------------------------------------------------------------- |