I am aware that CMake's EXCLUDE_FROM_ALL
allows me to exclude a target from both make
and make all
.
What if I wanted to only exclude the target from the default make
but include it in the make all
?
Example:
add_executable(aaa ${AAA_SOURCE})
add_executable(bbb EXCLUDE_FROM_ALL ${BBB_SOURCE})
Result:
make
only builds aaa
make all
only builds aaa
What I want:
make
only builds aaa
make all
builds aaa
and bbb