[CMake] Can I change the extension of a dll?

2008-07-10 Thread Georgios Petasis
Hi all, I am trying to compile a python module with cmake. Unfortunately, in python 2.5.2 they have decided that C modules will use the extension .pyd, instead of .dll under windows. So, I have to somehow rename a dll during installation. I currenlty have code like: INSTALL ( TARGETS

Re: [CMake] Can I change the extension of a dll?

2008-07-10 Thread Mike Jackson
This is what I use for my own expat library: #- Use MSVC Naming conventions for Shared Libraries IF (MINGW AND BUILD_SHARED_LIBS) SET_TARGET_PROPERTIES( expat PROPERTIES IMPORT_SUFFIX .lib IMPORT_PREFIX PREFIX ) ENDIF (MINGW AND BUILD_SHARED_LIBS)