[CMake] changing Visual Studio project environment setting with CMake

Neuhaus Jochen j.neuhaus at dkfz-heidelberg.de
Wed Apr 8 12:04:41 EDT 2009


Unfortunately, it doesn't. If I compile my project in Debug mode and have a Release mode ITKCommon.dll in my path, my application crashes on startup. The same for Release mode together with a Debug ITKCommon.dll. Mixing these is not possible. VTK on the other side is no problem, I can always use Release dlls with my debug exe. But even then it would be nice to be able to load Debug DLLs with my Debug build, if I want to debug into VTK code...
 

________________________________

Von: John Drescher [mailto:drescherjm at gmail.com]
Gesendet: Di 4/7/2009 8:15
An: Neuhaus Jochen
Cc: cmake at cmake.org
Betreff: Re: [CMake] changing Visual Studio project environment setting with CMake



On Fri, Apr 3, 2009 at 6:04 AM, Neuhaus Jochen
<j.neuhaus at dkfz-heidelberg.de> wrote:
> Hi,
>
> in Visual Studio, you can add custom environment variables that will
> exist if you run your application from visual studio. They are at
> [execuatable project]-->Properties-->Configuration
> Properties-->Debugging-->Environment
> My project needs to have a debug version of ITKCommon.dll in its PATH
> when running in Debug mode and a Release version of the DLL in Release
> mode respectively.

Doesn't cmake automatically handle the itk ... dlls correctly? I do
not have any debug / release issues with ITK, VTK or Qt all work
without me doing anything and there are no Qt, vtk, or itk dlls in my
project binary folder.

John




More information about the CMake mailing list