summaryrefslogtreecommitdiffhomepage
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-09-22 10:06:10 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-09-22 10:06:10 +0200
commit59c4424ebc570a9494f1e35b9400b2969716b16a (patch)
tree16878355ceb7d9bd5bca4a138140e37b4a8b531a /CMakeLists.txt
parent2c242165e3e3881dfffa31d1b8cf727a71c68be1 (diff)
cleanup warnings
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files 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()