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

add_library(foobar empty.cpp)

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