summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/PositionIndependentCode/main.cpp
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2012-11-05 12:46:26 +0100
committerBrad King <brad.king@kitware.com>2013-01-10 09:54:52 -0500
commit3581b96caa1d7bd6c02e85baf72ce28b5128e5e7 (patch)
tree048d95ad2d6d1071982b1a35c6ce87d35831cc81 /Tests/RunCMake/PositionIndependentCode/main.cpp
parent042ecf0471be84ce6c3e6c32dae526fdbd9a3a14 (diff)
downloadcmake-3581b96caa1d7bd6c02e85baf72ce28b5128e5e7.tar.gz
Process the INTERFACE_PIC property from linked dependencies
This allows a dependee to inform a target that it should have its POSITION_INDEPENDENT_CODE property set to ON, or OFF. The value of the POSITION_INDEPENDENT_CODE property, if set, must be consistent with any INTERFACE_POSITION_INDEPENDENT_CODE properties on dependees. Add a test covering the consistency checks on platforms where they run.
Diffstat (limited to 'Tests/RunCMake/PositionIndependentCode/main.cpp')
-rw-r--r--Tests/RunCMake/PositionIndependentCode/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/PositionIndependentCode/main.cpp b/Tests/RunCMake/PositionIndependentCode/main.cpp
new file mode 100644
index 0000000000..31ba482802
--- /dev/null
+++ b/Tests/RunCMake/PositionIndependentCode/main.cpp
@@ -0,0 +1,5 @@
+
+int main(int,char**)
+{
+ return 0;
+}