diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-24 20:53:53 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-12-24 20:53:53 +0100 |
commit | 3981f867377ca0652d0cc0ababbbc30208db7e1c (patch) | |
tree | bcf8118aa26cc999290722ae936a5a516b726f44 /x-plane-plugin/CMakeLists.txt | |
parent | b8a14c36f9d765102ad2329d522caa1469a6e912 (diff) |
add -fPIC in cmake
Diffstat (limited to 'x-plane-plugin/CMakeLists.txt')
-rw-r--r-- | x-plane-plugin/CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/x-plane-plugin/CMakeLists.txt b/x-plane-plugin/CMakeLists.txt index b827b7ab..f7bb7a3f 100644 --- a/x-plane-plugin/CMakeLists.txt +++ b/x-plane-plugin/CMakeLists.txt @@ -14,9 +14,9 @@ if(LINUX OR APPLE) LINK_FLAGS "-F${SDK_XPLANE}/Libraries/Mac/ -framework XPLM -framework XPWidgets ") elseif(CMAKE_COMPILER_IS_GNUCXX) set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY - COMPILE_FLAGS "-fPIC -DLIN -DXPLM200 -DXPLM210 ") + COMPILE_FLAGS "-DLIN -DXPLM200 -DXPLM210 ") set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY - LINK_FLAGS "-rdynamic -nodefaultlibs -fPIC ") + LINK_FLAGS "-rdynamic -nodefaultlibs ") endif() if(CMAKE_COMPILER_IS_GNUCC AND NOT CMAKE_COMPILER_IS_CLANG) |