summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/TargetSources/CMP0026-LOCATION.cmake
blob: 464df36821f40ca06a6c465c748676793c73f92b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

cmake_policy(SET CMP0026 OLD)

add_library(objlib OBJECT
    empty_1.cpp
)

add_executable(my_exe
    empty_2.cpp
    $<TARGET_OBJECTS:objlib>
)

get_target_property( loc my_exe LOCATION)