1 2 3 4 5
cmake_policy(SET CMP0046 OLD) add_custom_target(foo) add_custom_target(bar) add_dependencies(foo bar)