Attempt to get linking working with cmake - without success so far.

svn path=/trunk/; revision=52377
This commit is contained in:
Jörg Mayer 2013-10-05 10:17:21 +00:00
parent 438f4be98a
commit 7b3ac2ae6b
2 changed files with 20 additions and 0 deletions

View File

@ -465,6 +465,9 @@ foreach(PACKAGE ${PACKAGELIST})
endif()
endforeach()
# Provide Windows system lib names
include( UseWinLibs )
#packaging
include(CPackConfig.txt)

View File

@ -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()