diff options
author | David Cole <david.cole@kitware.com> | 2012-07-09 18:22:39 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2012-07-09 18:22:39 (GMT) |
commit | 7b28331f966a236e1e7f2b15cd351de8263b1711 (patch) | |
tree | f7f59908d5230f058499d5b3fb0bc1a266426625 /Tests | |
parent | b57dfb5f18b28bfa02d3750399a79f63305d6824 (diff) | |
parent | 92356038952df71894ea1c390f5b5902df8780be (diff) | |
download | CMake-7b28331f966a236e1e7f2b15cd351de8263b1711.zip CMake-7b28331f966a236e1e7f2b15cd351de8263b1711.tar.gz CMake-7b28331f966a236e1e7f2b15cd351de8263b1711.tar.bz2 |
Merge topic 'fix-pie-clang-trunk'
9235603 Fix PositionIndependentTargets test with clang trunk.
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/PositionIndependentTargets/pic_test.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/PositionIndependentTargets/pic_test.h b/Tests/PositionIndependentTargets/pic_test.h index 3f64557..13cf8f7 100644 --- a/Tests/PositionIndependentTargets/pic_test.h +++ b/Tests/PositionIndependentTargets/pic_test.h @@ -1,7 +1,7 @@ #if defined(__ELF__) -# if !defined(__PIC__) -# error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ to be defined on ELF platforms." +# if !defined(__PIC__) && !defined(__PIE__) +# error "The POSITION_INDEPENDENT_CODE property should cause __PIC__ or __PIE__ to be defined on ELF platforms." # endif #endif |