summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0026/CMP0026-OLD.cmake
blob: 80497a304b576785500ccdcfa09299dad1d397a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
enable_language(CXX)

cmake_policy(SET CMP0026 OLD)

set(out ${CMAKE_CURRENT_BINARY_DIR}/out.txt)

add_library(somelib empty.cpp ${out})
get_target_property(_loc somelib LOCATION)

file(WRITE "${out}"
  "source file written by project code after getting target LOCATION\n"
  )