[CMake] CMAKE_xxx_LIBRARY_PREFIX

David Cole david.cole at kitware.com
Fri Sep 28 12:04:41 EDT 2007


Isn't the "lib" prefix simply the default you would get if you built a
dll (even without cmake) with MinGW gcc?

On 9/28/07, Eric Noulard <eric.noulard at gmail.com> wrote:
> Can anyone explain me why
> the default CMAKE_xxx_LIBRARY_PREFIX
> used for MinGW compiler is 'lib' and not ''.
>
> When I compile my lib "marvelous"
> on windows:
>
> - using CMake + Visual Studio I get :
>       marvelous.dll
>
> - using CMake + MinGW I get:
>      libmarvelous.dll
>
> this seems un-homogeneous choice for the same windows plateform.
>
> I did change the behaviour using:
> IF (MINGW)
>         SET(CMAKE_SHARED_LIBRARY_PREFIX "")
>         SET(CMAKE_STATIC_LIBRARY_PREFIX "")
> ENDIF (MINGW)
>
> Any good reason for that choice?
> --
> Erk
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list