[CMake] MSYS static libraries under MSVC
Brandon Van Every
bvanevery at gmail.com
Sat Jun 16 03:19:58 EDT 2007
On 6/15/07, gga <ggarra at advancedsl.com.ar> wrote:
>
> I'm writing a better FindXXXX module for using some libraries compiled
> with MSYS under MSVC (FFMPEG to be more precise).
>
> My problem is that FIND_LIBRARY() seems to only search for .lib files,
> while MSYS static library files are named .a (even though they *are*
> .lib files compatible with MSVC).
>
> Switching to FIND_FILE() to find them, I still find that the
> TARGET_LINK_LIBRARIES() command will still add them as .lib, so it will
> end up trying to link in, for example, libogg.a.lib.
I guess this must be a problem with 3rd party libraries. I've never
had this problem with libraries I built myself, either with the MinGW
or the MSYS generators.
What are you passing exactly to TARGET_LINK_LIBRARIES?
> Is there any way to make this work? I cannot change the extension for
> all libraries, as most other libraries will probably be named .lib under
> msvc.
Sounds like bugs.
Cheers,
Brandon Van Every
More information about the CMake
mailing list