Dear Cmake user,

I am still having trouble when trying to generate shared libraries on visual (7.1 and 8.0).

I am correctly taggin the __declspec(dllexport)/__declspec(dllimport) when choosing SHARED_LIBRARIES in the cmake configuration process.

But When I open the properties of a given libraries in visual IDE, it says static libraries (.lib). So the whole project think he is generating shared libraries, and put __declspec(dllimport) everywhere when using a lib, though actually visual builds static libraries. This is of course not compiling.

Of course I can manually open each library properties and toggle the configuration type to dynamic libraries (.dll), but this is quite heavy since I have quite a lot of libraries ...

Any idea why visual persist in building static libraries, even if i export the symbols and configure the cmake SHARED_LIBRARIES option (working fine under linux, by the way) ?

Julien
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Julien MICHEL - Ingénieur d'études - Traitement d'images
CS Systèmes d'Information - Division ESPACE
Département Information Géographique & Image
Téléphone : +33 561 17 64 27
Email : [EMAIL PROTECTED]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to