[CMake] Linking error with VS2005

2010-05-21 Thread Daanen Vincent
Dear Cmake users, I'm facing to a problem I can't resolve. I'm developping on a windows XP SP3 box with Visual Studio 2005. I have a project using itk which compile fine. For some reason, I try to use cmake to generate the same project and I got linker error (conflict between msvcrtd.lib and

Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent daa...@koelis.com wrote: Dear Cmake users, I'm facing to a problem I can't resolve. I'm developping on a windows XP SP3 box with Visual Studio 2005. I have a project using itk which compile fine. For  some reason, I try to use cmake to

Re: [CMake] Linking error with VS2005

2010-05-21 Thread John Drescher
[mailto:dresche...@gmail.com] Envoyé : vendredi 21 mai 2010 14:29 À : Daanen Vincent Cc : cmake@cmake.org Objet : Re: [CMake] Linking error with VS2005 On Fri, May 21, 2010 at 8:01 AM, Daanen Vincent daa...@koelis.com wrote: Dear Cmake users, I'm facing to a problem I can't resolve. I'm

Re: [CMake] Linking error with VS2005

2010-05-21 Thread Chuck Atkins
Does the problem happen in both Debug and Release builds? Visual C++ has a well known problem of mixing debug and release libraries together. My suspicion is that you have some dependant libraries that are only built in Debug or only built in Release. With Visual C++ it is important that all

Re: [CMake] Linking error with VS2005

2010-05-21 Thread Philip Lowman
It also may be caused by linking code compiled with /MT against code compiled with /MD (or vice versa). On Fri, May 21, 2010 at 10:48 AM, Chuck Atkins chuck.atk...@kitware.comwrote: Does the problem happen in both Debug and Release builds? Visual C++ has a well known problem of mixing debug