Hi Thorsten, the plplot.sln and its components are written by CMake itself - it is done by the generator. But it does bring a suspicious pattern to light: the maltreated libraries are referred to by their _name_ only, whereas all the others have a directory and an extension.
I suggest you try this change in FindwxWidgets.cmake: list(APPEND wxWidgets_LIBRARIES winmm.lib comctl32.lib rpcrt4.lib wsock32.lib) My guess is that will suppress the addition of the -L+ prefix, as the names will be complete file names, whereas this -L+ looks like a -l prefix under Linux. Regards, Arjen > -----Original Message----- > From: Thorsten Behrens [mailto:thorsten.behr...@dorunth.de] > Sent: Friday, April 04, 2014 12:25 PM > To: PLplot development discussion > Subject: Re: [Plplot-devel] Wrong linker directives for Visual Studio 2010 > > Hi Arjen! > > >>> For the case that CMake finds a D compiler on Windows, various link > >>> and library flags are set: > >>> > >>> IF(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") > >>> SET(CMAKE_INCLUDE_FLAG_D "-I") # -I > >>> SET(CMAKE_INCLUDE_FLAG_D_SEP "") # , or empty > >>> SET(CMAKE_LINK_LIBRARY_FLAG "-L+") > >>> SET(CMAKE_LIBRARY_PATH_FLAG "-L+") > >>> SET(CMAKE_LIBRARY_PATH_TERMINATOR "\\") > >>> FIND_PROGRAM(DMD_LIBRARIAN "lib.exe") > > ... > > What you should do is add some print-statements in that file to see at > > what moment the -L+ appears: > > > > MESSAGE( STATUS "1 -- wxWidgets_LIBRARIES: ${ wxWidgets_LIBRARIES}" ) > > > > (incrementing "1" with each occurrence of setting this > > wxWidgets_LIBRARIES variable for easy identification). > > I did several builds in the meantime, adding debug output to various .cmake > files. > However, up until invocation of summary.cmake (which I assume is the last > cmake > module being called), the output is always this: > > ---snip--- > -- 1 summary.cmake -- wxWidgets_LIBRARIES: > F:/wxWidgets-3.0.0/lib/vc_lib/wxbase30ud.lib;F:/wxWidgets- > 3.0.0/lib/vc_lib/wxmsw30ud_core.lib;F:/wxWidgets- > 3.0.0/lib/vc_lib/wxpngd.lib;F:/wxWidgets-3.0.0/lib/vc_lib/wxtiffd.lib;F:/wxWidgets- > 3.0.0/lib/vc_lib/wxjpegd.lib;F:/wxWidgets-3.0.0/lib/vc_lib/wxzlibd.lib;F:/wxWidgets- > 3.0.0/lib/vc_lib/wxregexud.lib;F:/wxWidgets- > 3.0.0/lib/vc_lib/wxexpatd.lib;winmm;comctl32;rpcrt4;wsock32 > -- 1 summary.cmake -- wxWidgets_LINK_FLAGS: > ---snap--- > > So, everything looks fine here. *But*, if I open the resulting plplot.sln it > gives me the > following linker input dependencies: > > ---snip--- > kernel32.lib > user32.lib > gdi32.lib > winspool.lib > shell32.lib > ole32.lib > oleaut32.lib > uuid.lib > comdlg32.lib > advapi32.lib > ..\dll\Debug\plplot.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxbase30ud.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxmsw30ud_core.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxpngd.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxtiffd.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxjpegd.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxzlibd.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxregexud.lib > F:\wxWidgets-3.0.0\lib\vc_lib\wxexpatd.lib > -L+winmm.lib > -L+comctl32.lib > -L+rpcrt4.lib > -L+wsock32.lib > ..\dll\Debug\csirocsa.lib > ..\dll\Debug\qsastime.lib > ---snap--- > > Can you tell me, when and where the plplot.sln is being generated? > > -- > Best regards, > Thorsten > > ------------------------------------------------------------------------------ > _______________________________________________ > Plplot-devel mailing list > Plplot-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/plplot-devel > DISCLAIMER: This message is intended exclusively for the addressee(s) and may contain confidential and privileged information. If you are not the intended recipient please notify the sender immediately and destroy this message. Unauthorized use, disclosure or copying of this message is strictly prohibited. The foundation 'Stichting Deltares', which has its seat at Delft, The Netherlands, Commercial Registration Number 41146461, is not liable in any way whatsoever for consequences and/or damages resulting from the improper, incomplete and untimely dispatch, receipt and/or content of this e-mail. ------------------------------------------------------------------------------ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel