[CMake] CMake crash during make install on a dll

Troels Frimor troels at in.tum.de
Tue Sep 28 09:24:25 EDT 2004


Hi all,

I am in the middle of converting a part of a program from Linux with 
Autoconf to Windows with CMake. This is all going very well except 
issues with dll's.

But to the point:
CMake crashes during the install of our program without any proper error 
message (I get a nice message about windows wanting to tell MS)
I am running WinXP, VS C++ (Vc7), CMake 2.0.3
The generated cmake_install.cmake file that causes the crash looks like:

# Install script for directory: C:/dwarf/src/stub/omni

MESSAGE(STATUS "Installing C:/dwarf/../install/lib/libomnistubs.lib")
FILE(INSTALL DESTINATION "C:/dwarf/../install/lib" TYPE STATIC_LIBRARY 
OPTIONAL FILES "C:/dwarf/build/src/stub/omni/libomnistubs.lib")
MESSAGE(STATUS "Installing C:/dwarf/../install/bin/libomnistubs.dll")
FILE(INSTALL DESTINATION "C:/dwarf/../install/bin" TYPE SHARED_LIBRARY 
FILES "C:/dwarf/build/src/stub/omni/libomnistubs.dll")
INCLUDE("C:/dwarf/build/src/stub/omni/DWARF/cmake_install.cmake")

(CMake crashes at the first FILE(INSTALL..) and the second if the first 
is commented out)

The actual compilation looks like this:
1 create the dll target
2 create a dummy static lib target
3 do a DUMPBIN.EXE /symbols on the static lib convert to a .def file via 
a lot of egrep's
(ref: 
http://www.omniorb-support.com/pipermail/omniorb-list/2003-October/024387.html)
4 Compile with the /def: added to the linker command

I et one warning:
Linking...
    Creating library Debug\libomnistubs.lib and object 
Debug\libomnistubs.exp
libomnistubs.exp : warning LNK4070: /OUT:dllomnistubs.dll directive in 
.EXP differs from output filename 'Debug\libomnistubs.dll'; ignoring 
directive

I hope someone has an idea why it crashes, because I am running out of 
ideas of things to change.

reagards,
Troels



More information about the CMake mailing list