Following is the issue, I am encountering
- I have a shell script named my_script.sh.IN. I use configure_file for expanding script and thus creating my_script.sh.
- I then need to run my_script.sh. For this purpose, I am using execute_process().
- I need all of this at CMake time.
Issue: Problem is that when I run "cmake", system complains that he could not find "my_script.sh". I think that execute_process dependencies seem to be calculated before configure_file() function runs.
When I run "cmake" command second time, everything goes fine. Does anybody knows that how can I able to execute configure_file before execute_process?
add_custom_target/add_custom_commandand a dependency on themy_script.shfile.