summaryrefslogtreecommitdiffstats
path: root/Tests/ExportImport/Export
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-01-12 11:13:19 (GMT)
committerBrad King <brad.king@kitware.com>2013-01-15 19:36:22 (GMT)
commit522bdac14963acf7c147f5518ea51382b042bf96 (patch)
treea52af802f40343b92da941080225ad0c2ea21e4d /Tests/ExportImport/Export
parent4ee872cb99f49ac5a95768da454f3313ba87182f (diff)
downloadCMake-522bdac14963acf7c147f5518ea51382b042bf96.zip
CMake-522bdac14963acf7c147f5518ea51382b042bf96.tar.gz
CMake-522bdac14963acf7c147f5518ea51382b042bf96.tar.bz2
Export the INTERFACE_PIC property.
Diffstat (limited to 'Tests/ExportImport/Export')
-rw-r--r--Tests/ExportImport/Export/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/ExportImport/Export/CMakeLists.txt b/Tests/ExportImport/Export/CMakeLists.txt
index e92dcd8..fd7a1a6 100644
--- a/Tests/ExportImport/Export/CMakeLists.txt
+++ b/Tests/ExportImport/Export/CMakeLists.txt
@@ -162,6 +162,10 @@ include(GenerateExportHeader)
add_library(testSharedLibRequired SHARED testSharedLibRequired.cpp)
generate_export_header(testSharedLibRequired)
+set_property(TARGET testSharedLibRequired
+ PROPERTY
+ INTERFACE_POSITION_INDEPENDENT_CODE ON
+)
set_property(TARGET testSharedLibRequired APPEND PROPERTY
INCLUDE_DIRECTORIES "${CMAKE_CURRENT_BINARY_DIR}"
)