[CMake] cmake -E rename with wildcard adds quotes to argument
josec at adtecinc.com
josec at adtecinc.com
Thu Sep 8 17:29:42 EDT 2011
Essentially what I've tried to do is:
ExternalProject_Add(aproject
...)
ExternalProject_Add_Step(aproject customstep
DEPENDEES build
COMMAND ${CMAKE_COMMAND} -E rename foo-* foo
...)
This appears to have generated the following:
cd /path/to/working/directory && /usr/bin/cmake -E rename "foo-*" foo
...which causes the following error:
Error renaming from "foo-*" to "foo": No such file or directory
If I run the cmake -E rename on the command line without quotes it works as expected.
Is it possible to generate the command without the added quotes or is this actually protecting me from my own ignorance? Is there another way to accomplish this task? Basically, the project I'm trying to add needs to be installed manually but the directories containing the built libraries will vary depending on the system. I was trying to rename this directory using a wildcard so that I could then copy its contents to the desired location.
-Jose
More information about the CMake
mailing list