summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0040/CMP0040-OLD-existing-target.cmake
blob: 7a9e91e836760de51d65d775b244f10b5af1410a (plain)
1
2
3
4
5
6
7
cmake_policy(SET CMP0040 OLD)

add_library(foobar empty.cpp)

add_custom_command(TARGET foobar PRE_BUILD
  COMMAND ${CMAKE_COMMAND} -E echo hello world
)