From 59c4424ebc570a9494f1e35b9400b2969716b16a Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 22 Sep 2014 10:06:10 +0200 Subject: cleanup warnings --- CMakeLists.txt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 633bf587..024f67f5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -274,7 +274,11 @@ opentrack_library(opentrack-proto-fgfs) if(SDK_VJOY) include_directories(${SDK_VJOY}) - opentrack_library(opentrack-proto-vjoy) + set(link-flags) + if(CMAKE_C_COMPILER_IS_GNUCC) + set(link-flags "-Wl,--enable-stdcall-fixup") + endif() + opentrack_library(opentrack-proto-vjoy LINK ${link-flags}) target_link_libraries(opentrack-proto-vjoy ${MY_QT_LIBS} "${SDK_VJOY}/VJoy.dll") endif() @@ -286,7 +290,7 @@ if(SDK_ENABLE_LIBEVDEV) endif() if(SDK_FSUIPC) - opentrack_library(opentrack-proto-fsuipc LINK "${link-flags}") + opentrack_library(opentrack-proto-fsuipc) target_link_libraries(opentrack-proto-fsuipc "${SDK_FSUIPC}/FSUIPC_User.lib") endif() -- cgit v1.2.3