c++ - What is the name of CMake's default build target? -
i have custom target, , want depend on default target (the 1 built make
).
add_custom_target(foo ....) add_dependency(foo default_target_name_goes_here)
what name of default target?
i've tried all
, all_build
, myprojectsname
, default
,...
finding in cmake documentation unsuccessful adventure...
update: seems cmake designed in such way extremely hard fix/implement: bugreport getting +1's since 2009. indeed have custom target depends on, example, all
target? or in other words: ever write make && make test
?...
the default build target not exist cmake target @ cmake configure time. exists in generated build system. therefore not possible have default target depend on custom target.
Comments
Post a Comment