diff options
| author | eroen | 2012-10-24 12:20:26 +0200 |
|---|---|---|
| committer | eroen | 2012-10-24 12:43:40 +0200 |
| commit | 3ecda6dbba4f8f8de89e7e1efd8ee40d00e5bb87 (patch) | |
| tree | e285915882a90eab52db0ac9128bc1a7c3126a7c /depends/tinyxml/CMakeLists.txt | |
| parent | d9cd427121d0edd2fb4f1983fe30ac629a03c2f7 (diff) | |
| download | dfhack-3ecda6dbba4f8f8de89e7e1efd8ee40d00e5bb87.tar.gz dfhack-3ecda6dbba4f8f8de89e7e1efd8ee40d00e5bb87.tar.bz2 dfhack-3ecda6dbba4f8f8de89e7e1efd8ee40d00e5bb87.tar.xz | |
Compile static dependency libraries as PIC.to-upstream
Otherwise, we get position dependent textrels in the shared libraries
that link against them, which is slightly bad for performance (and very
bad for portability).
Cross-platform support for handling this was added in cmake 2.8.9.
Diffstat (limited to 'depends/tinyxml/CMakeLists.txt')
| -rw-r--r-- | depends/tinyxml/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/depends/tinyxml/CMakeLists.txt b/depends/tinyxml/CMakeLists.txt index 7d924924..f97f4bc0 100644 --- a/depends/tinyxml/CMakeLists.txt +++ b/depends/tinyxml/CMakeLists.txt @@ -1,3 +1,4 @@ project(dfhack-tinyxml) ADD_LIBRARY(dfhack-tinyxml STATIC EXCLUDE_FROM_ALL tinystr.cpp tinyxml.cpp tinyxmlerror.cpp tinyxmlparser.cpp) -IDE_FOLDER(dfhack-tinyxml "Depends")
\ No newline at end of file +set_target_properties(dfhack-tinyxml PROPERTIES POSITION_INDEPENDENT_CODE True) +IDE_FOLDER(dfhack-tinyxml "Depends") |
