[physfs] static and import library have got the same name under MSVC?
Markus Henschel
markus-henschel at gmx.de
Fri Mar 21 09:28:19 EDT 2008
Ryan C. Gordon wrote:
>
>> when generating a MSVC 2005 solution for building PhysFS with static
>> and shared library targets enabled I had a strange behavior. The
>> import library for physfs.dll as well as the static library are names
>> physfs.lib. Because both files are placed in the same directory this
>> leads to one file overwriting each other during build.
>>
>> Is this a bug or a feature?
>
> Bug. Is this 1.1 or 1.0? I think I fixed this in the CMake files in 1.1,
> but probably not the 1.0 Visual C project files.
>
> I'd also recommend you just build PhysicsFS directly into your project
> instead of trying to build it as a separate library...it's probably
> easier for most uses.
>
> --ryan.
No, it's for projects generated from the CMakeLists.txt in 1.1.1. The
physfs-static target is forced to the same output name using this directive:
SET_TARGET_PROPERTIES(physfs-static PROPERTIES OUTPUT_NAME "physfs")
Markus
More information about the physfs
mailing list