[CMake] Generating shared libraries on Visual 8.0

Julien Michel julien.michel at c-s.cnes.fr
Mon Sep 29 13:10:56 EDT 2008


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 : julien.michel at c-s.fr

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



More information about the CMake mailing list