CMake/Tests/RunCMake/CMP0040/CMP0040-NEW-missing-target....

6 lines
120 B
CMake
Raw Normal View History

cmake_policy(SET CMP0040 NEW)
add_custom_command(TARGET foobar PRE_BUILD
COMMAND "${CMAKE_COMMAND} -E hello world"
)