CMake/Tests/RunCMake/CMP0040/CMP0040-OLD-existing-target...

8 lines
154 B
CMake

cmake_policy(SET CMP0040 OLD)
add_library(foobar empty.cpp)
add_custom_command(TARGET foobar PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E echo hello world
)