[cmake-developers] [PATCH] Extend copy and copy_if_different commands with support multiple files
Bartosz Kosiorek
Bartosz.Kosiorek at tomtom.com
Thu Dec 3 12:31:10 EST 2015
When I'm trying to run test with wildcard:
run_cmake_command(E_copy-wildcard-source-files-target-is-directory ${CMAKE_COMMAND} -E copy
${RunCMake_copy_TEST_SOURCE_DIR}/directory1/*
${RunCMake_copy_TEST_BINARY_DIR})
I've got an error:
Error copying file "/home/kosiorek/dev/perforce/cmake-dev/Tests/RunCMake/CommandLine/test_copy_command_dir/directory1/*" to "/home/kosiorek/dev/perforce/cmake-dev/builddir/Tests/RunCMake/CommandLine/test_copy_command_dir".
but when I'm running such command locally it work perfectly:
/home/kosiorek/dev/perforce/cmake-dev/builddir/bin/cmake -E copy /home/kosiorek/dev/perforce/cmake-dev/Tests/RunCMake/CommandLine/test_copy_command_dir/directory1/* /home/kosiorek/dev/perforce/cmake-dev/builddir/Tests/RunCMake/CommandLine/test_copy_command_dir
What I'm doing wrong ?
________________________________________
From: Brad King <brad.king at kitware.com>
Sent: Thursday, December 3, 2015 5:38 PM
To: Bartosz Kosiorek
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] [PATCH] Extend copy and copy_if_different commands with support multiple files
On 12/03/2015 11:05 AM, Bartosz Kosiorek wrote:
> After every step I will need to clean it up .
If you add these as cases in the RunCMake.CommandLine test then each one can
get its own directory and the RunCMake infrastructure will take care of
cleaning it up for each run.
-Brad
More information about the cmake-developers
mailing list