summaryrefslogtreecommitdiffhomepage
path: root/x-plane-plugin
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-02-12 17:17:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2018-02-12 17:50:39 +0100
commit958f906892ec59a8575b85f939164bc435212420 (patch)
tree263d0fd775a11e4868b74c8f57d9e3102ddde6cc /x-plane-plugin
parent57c5de5228485637e6dac2ed28e7c727e14d602f (diff)
cmake: remove otr_prop()
It's too complex to be understood when written in CMake. Replace with explicit calls to set_property(). This hasn't been tested on OSX.
Diffstat (limited to 'x-plane-plugin')
-rw-r--r--x-plane-plugin/CMakeLists.txt17
1 files changed, 10 insertions, 7 deletions
diff --git a/x-plane-plugin/CMakeLists.txt b/x-plane-plugin/CMakeLists.txt
index db712590..32ec16e2 100644
--- a/x-plane-plugin/CMakeLists.txt
+++ b/x-plane-plugin/CMakeLists.txt
@@ -7,18 +7,21 @@ if(LINUX OR APPLE)
install(FILES ${opentrack-xplane-plugin-c} DESTINATION "${opentrack-doc-src-pfx}/opentrack-xplane-plugin")
target_include_directories(opentrack-xplane-plugin SYSTEM PUBLIC ${SDK_XPLANE}/CHeaders ${SDK_XPLANE}/CHeaders/XPLM)
- set(begin TARGET opentrack-xplane-plugin)
-
if(APPLE)
- otr_prop(${begin} COMPILE_FLAGS "-iframework ${SDK_XPLANE}/Libraries/Mac/ -DAPL -DXPLM200 -DXPLM210 -framework XPLM -framework XPWidgets"
- LINK_FLAGS "-F${SDK_XPLANE}/Libraries/Mac/ -framework XPLM -framework XPWidgets")
+ set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY
+ COMPILE_FLAGS "-iframework ${SDK_XPLANE}/Libraries/Mac/ -DAPL -DXPLM200 -DXPLM210 -framework XPLM -framework XPWidgets ")
+ set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY
+ LINK_FLAGS "-F${SDK_XPLANE}/Libraries/Mac/ -framework XPLM -framework XPWidgets ")
elseif(CMAKE_COMPILER_IS_GNUCXX)
- otr_prop(${begin} COMPILE_FLAGS "-fPIC -DLIN -DXPLM200 -DXPLM210"
- LINK_FLAGS "-rdynamic -nodefaultlibs -fPIC")
+ set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY
+ COMPILE_FLAGS "-fPIC -DLIN -DXPLM200 -DXPLM210 ")
+ set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY
+ LINK_FLAGS "-rdynamic -nodefaultlibs -fPIC ")
endif()
if(CMAKE_COMPILER_IS_GNUCXX AND NOT CMAKE_COMPILER_IS_CLANG)
- otr_prop(${begin} LINK_FLAGS "-undefined_warning")
+ set_property(TARGET opentrack-xplane-plugin APPEND_STRING PROPERTY
+ LINK_FLAGS "-undefined_warning ")
endif()
set_target_properties(opentrack-xplane-plugin PROPERTIES