[cmake-developers] [PATCH][CPack][RPM] multiple path relocation prefixes

Brad King brad.king at kitware.com
Mon Jan 19 09:31:52 EST 2015


On 01/17/2015 01:19 AM, Domen Vrankar wrote:
> I've decided to go with the generic solution and without dependency on
> GNUInstallDirs altogether.

Okay.  I reverted the 'rpm_multi_prefix' topic from 'next' for now.
Please resubmit when ready.

On 01/16/2015 05:06 PM, Domen Vrankar wrote:
>> Please look at adding test cases, perhaps in Tests/RunCMake,
>> to check the warning message about non-relocatable paths.
> Haven't tried to write negative tests or parsing of command line
> during test execution. Are there any good examples of such tests?

Most of the RunCMake tests are for negative tests, but mostly for
running "cmake".  IIUC you need tests that run "cpack", right?
For that you can use run_cmake_command.  See use in the
RunCMake.CTestMemcheck test to run "ctest":

 Tests/RunCMake/CTestMemcheck/RunCMakeTest.cmake

See also Tests/RunCMake/CommandLine/RunCMakeTest.cmake for other
uses to try the non-generator signatures of "cmake".

Thanks,
-Brad



More information about the cmake-developers mailing list