summaryrefslogtreecommitdiffstats
path: root/Tests/SourcesProperty/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-12-01 13:57:34 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-12-01 13:57:34 (GMT)
commit8e75f1d2fa3049ac31f4ebdbc255fca3e6414802 (patch)
tree4bb6af9da45afae0e91c2b19085157cbacc692fd /Tests/SourcesProperty/CMakeLists.txt
parent2a92231630b6aee671c7f4e8b64f69cfd172b9e3 (diff)
parent8a75c7ef32af391cb45af889d266e2a77daa61d6 (diff)
downloadCMake-8e75f1d2fa3049ac31f4ebdbc255fca3e6414802.zip
CMake-8e75f1d2fa3049ac31f4ebdbc255fca3e6414802.tar.gz
CMake-8e75f1d2fa3049ac31f4ebdbc255fca3e6414802.tar.bz2
Merge topic 'target-sources-error-conditions'
8a75c7ef Help: Document the export limitation of INTERFACE_SOURCES. e1348056 Export: Disallow export of targets with INTERFACE_SOURCES bb5905bb cmTarget: Don't allow relative paths in INTERFACE_SOURCES
Diffstat (limited to 'Tests/SourcesProperty/CMakeLists.txt')
-rw-r--r--Tests/SourcesProperty/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/Tests/SourcesProperty/CMakeLists.txt b/Tests/SourcesProperty/CMakeLists.txt
index 6c99e00..d1c35d8 100644
--- a/Tests/SourcesProperty/CMakeLists.txt
+++ b/Tests/SourcesProperty/CMakeLists.txt
@@ -4,7 +4,9 @@ cmake_minimum_required(VERSION 3.0)
project(SourcesProperty)
add_library(iface INTERFACE)
-set_property(TARGET iface PROPERTY INTERFACE_SOURCES iface.cpp)
+set_property(TARGET iface PROPERTY INTERFACE_SOURCES
+ "${CMAKE_CURRENT_SOURCE_DIR}/iface.cpp"
+)
add_executable(SourcesProperty main.cpp)
target_link_libraries(SourcesProperty iface)