From fadbc9f71f21e5147825dd5db7bf5e4c68a58178 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 23 May 2016 09:40:37 +0200 Subject: cmake/x-plane-plugin: remove typo var name. enough to check for cxx --- x-plane-plugin/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-plane-plugin/CMakeLists.txt b/x-plane-plugin/CMakeLists.txt index a58c76a9..616f0d54 100644 --- a/x-plane-plugin/CMakeLists.txt +++ b/x-plane-plugin/CMakeLists.txt @@ -7,7 +7,7 @@ if(LINUX OR APPLE) add_library(opentrack-xplane-plugin SHARED ${opentrack-xplane-plugin-c}) target_include_directories(opentrack-xplane-plugin SYSTEM PUBLIC ${SDK_XPLANE}/CHeaders ${SDK_XPLANE}/CHeaders/XPLM) set(vis "-fvisibility=hidden") - if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_GNUCC AND NOT APPLE) + if(CMAKE_COMPILER_IS_GNUCXX AND NOT APPLE) SET_TARGET_PROPERTIES(opentrack-xplane-plugin PROPERTIES LINK_FLAGS "-shared -rdynamic -nodefaultlibs -undefined_warning -fPIC" -- cgit v1.2.3