I want to use dynamic path for source files.
For example I want to copy file from path C:\Project source
So I have set Environment Variable SOURCE_PATH to "C:\Project source" and used it in Install file command as per following:
Code: Select all
Install Files %SOURCE_PATH%\test.txt to $TARGETDIR$
As per my thinking it should parse this command as
Code: Select all
Install Files C:\Project source\test.txt to $TARGETDIR$
But when I try to compile or build my project it is giving me following error:
No Files matching pattern "c:\test project\%SOURCE_PATH%\test.txt"
I think this is happening because it it taking relative path to my project folder [i.e. C:\test project].
But it is not parsing value of SOURCE_PATH environment variable.
I am wondering because I have done same in my previous project and it is successfully taking source files from the path described in Environment variable used in it.
Is there anything I am missing? Please help.
Thanks,
Chintan