Hi Thorsten, I can find only one occurrence of -L+ in the CMake module files: CmakeDInformation.cmake 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") This looks suspicious to me (this variables are global as far as I understand), but I never ran into that, because I do not have a D compiler. Regards, Arjen > -----Original Message----- > From: Thorsten Behrens [mailto:thorsten.behr...@dorunth.de] > Sent: Thursday, April 03, 2014 8:44 PM > To: PLplot development discussion > Subject: [Plplot-devel] Wrong linker directives for Visual Studio 2010 > > Hi! > > After being able to build PLplot including the examples I went on compiling > all > sources with Visual Studio 2010. > > I encountered three projects (as it is called within Visual Studio) that > can't be built > due to errors in the linker include definition. wxwidgets, plplotwxwidgets and > wxPLplotDemo all contain four linker includes each that are not correctly > defined for > Visual Studio. Instead of giving these libs as winmm.lib, comctl32.lib, > rpcrt4.lib and > wsock32.lib they are given as -L+winmm.lib, -L+comctl32.lib, -L+rpcrt4.lib > and - > L+wsock32.lib. > Removing the prefix "-L+" within the properties of all three projects makes > them > build without further problems. I assume this prefix might be used either on > a Unix > platform or with some other compiler environment. A search for the string > "-L+" > reveals .\cmake\modules\language_support\cmake\CMakeDInformation.cmake as > the only source file containing it. > > Can someone knowledgeable in CMake have a look at this? > > -- > 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