[CMake] Import library not generated under Visual Studio

Martin Apel martin.apel at simpack.de
Thu Jun 5 04:15:03 EDT 2008


Hi all,

I am trying to port a project using CMake 2.6 from Linux to Windows. The 
project build works without problems under Linux. However when trying to 
build the project inside Visual Studio 8 after having generated the 
project files using CMake, no import libraries are generated.
The library build step is specified by using
  ADD_LIBRARY(Base SHARED EXCLUDE_FROM_ALL ${LocalSrc})
which I would expect to generate rules to create the DLL AND the 
corresponding import library. The DLL is built, but the import library 
is missing. Looking at the build log file in Visual Studio, there is no 
call to lib.exe, which I would expect.
I am not a Windows specialist, so I may be missing something simple 
completely.

Any help would be appreciated.

Martin


More information about the CMake mailing list