summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoy/CMakeLists.txt
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-05-22 10:27:51 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-05-22 10:27:51 +0200
commit1983bf2e3a8db6036c7460d4b99b6b6f0521bc37 (patch)
treed3a030f710faf0a4ff0d33ad306b94c4b05919fb /proto-vjoy/CMakeLists.txt
parentb20f047e015980329af4131500bce8b72e340737 (diff)
cmake/many: update for dinput8 manual link removal
It's automatic now.
Diffstat (limited to 'proto-vjoy/CMakeLists.txt')
-rw-r--r--proto-vjoy/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/proto-vjoy/CMakeLists.txt b/proto-vjoy/CMakeLists.txt
index 22678c32..5584c876 100644
--- a/proto-vjoy/CMakeLists.txt
+++ b/proto-vjoy/CMakeLists.txt
@@ -1,7 +1,11 @@
if(WIN32)
set(SDK_VJOY "" CACHE PATH "VJoy SDK path")
if(SDK_VJOY)
- opentrack_boilerplate(opentrack-proto-vjoy GNU-LINK "-Wl,--enable-stdcall-fixup")
+ set(link "")
+ if(CMAKE_COMPILER_IS_GNUCXX)
+ set(link "-Wl,--enable-stdcall-fixup")
+ endif()
+ opentrack_boilerplate(opentrack-proto-vjoy LINK "${link}")
if(MSVC)
set(ext .lib)
else()