What is the name of CMake's default build target?

后端 未结 2 1029
醉酒成梦
醉酒成梦 2020-12-21 10:33

I have a custom target, and I want it to depend on the default target (the one that is built with make).

add_custom_target(foo ....)
add_depend         


        
2条回答
  •  感动是毒
    2020-12-21 10:59

    The default build target does not exist as a CMake target at CMake configure time. It is only exists in the generated build system. Therefore it is not possible to have the default target depend on a custom target.

提交回复
热议问题