No rule to make custom target
Posted
by
Andy T
on Stack Overflow
See other posts from Stack Overflow
or by Andy T
Published on 2012-06-25T15:12:31Z
Indexed on
2012/06/25
15:15 UTC
Read the original article
Hit count: 158
cmake
add_custom_target(custom_target
COMMAND ./some_script.sh
WORKING_DIRECTORY subdir
)
I cannot build this custom target because of error:
make[4]: *** No rule to make target `subdir/all'. Stop.
make[3]: *** [all] Error 2
make[2]: *** [project_dir/CMakeFiles/custom_target] Error 2
make[1]: *** [project_dir/CMakeFiles/custom_target.dir/all] Error 2
make: *** [all] Error 2
How to resolve this?
© Stack Overflow or respective owner