aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/modules/UseWinLibs.cmake
diff options
context:
space:
mode:
authorJörg Mayer <jmayer@loplof.de>2013-10-05 10:17:21 +0000
committerJörg Mayer <jmayer@loplof.de>2013-10-05 10:17:21 +0000
commit7b3ac2ae6bdeac058c02d0d7f6d071f85dc04b91 (patch)
tree9418b2f62f814d3eaa89371212e7466fba2090da /cmake/modules/UseWinLibs.cmake
parent438f4be98ab75e7fa2d075ffecefa00256065652 (diff)
Attempt to get linking working with cmake - without success so far.
svn path=/trunk/; revision=52377
Diffstat (limited to 'cmake/modules/UseWinLibs.cmake')
-rw-r--r--cmake/modules/UseWinLibs.cmake17
1 files changed, 17 insertions, 0 deletions
diff --git a/cmake/modules/UseWinLibs.cmake b/cmake/modules/UseWinLibs.cmake
new file mode 100644
index 0000000000..c5d986e072
--- /dev/null
+++ b/cmake/modules/UseWinLibs.cmake
@@ -0,0 +1,17 @@
+#
+# $Id$
+#
+
+# Right now this is a more or less inelegant hack to get Windows
+# builds going with MSVC
+
+if( WIN32 )
+
+ # We might need something like "if (CMAKE_COMPILER_ID MATCHES "MSVC")"
+ # here to support other compilers on Windows.
+
+ set( WIN_SETARGV_OBJECT setargv.obj )
+
+ set( WS_LINK_FLAGS ${WS_LINK_FLAGS} "${WIN_SETARGV_OBJECT}" )
+
+endif()