[Insight-users] compiling flags using build VTK instead of
installed VTK
Bill Lorensen
wlorens1 at nycap . rr . com
Thu, 22 Aug 2002 07:46:16 -0400
Martin,
This is the expected and required behavior. The builds must have compatible compile flags. Of course, in the case of optimization or debug level there would be not harm in having different flags. But, in many cases, different flags will cause problems.
Bill
At 10:23 AM 8/22/02 +0200, Martin Styner wrote:
>Hi everybody
>
>I found an oddity in the behavior of cmake with itk. When I am using a locally built VTK instead of an installed VTK, the CXXFLAGS and CFLAGS will be taken from the VTK part instead of from ITK. E.g. If I am compiling VTK with '-O2', then I can't get itk to compile without the '-O2' flag! Well, there is a work-around, I just reran ccmake in the VTK directory, changed the compilation flags and generated the makefiles (of course without rerunning the compilation itself). Then I reran ccmake in the itk directory and regenerated the makefiles and everything was like I wanted it (no '-O2' for itk).
>
>Is the above behavior (VTK definitions superseeding the itk definitions for the compilation flags) intended to be like this, or is it an error ?
>
>Martin
>
>--
>Martin Styner, PhD. Ing. ETH
>Group Head Medical Image Analysis for Orthopedics
>M.E. Mueller Institute for Biomechanics
>Center for Computed Assisted Surgery
>University of Bern
>Murtenstrasse 35
>P.O.Box 30
>CH - 3010 Bern
>Switzerland
>Tel office: ++41-31-632-8784 , FAX: ++41-31-632-4951
>email: Martin.Styner@memot.unibe.ch, martin_styner@ieee.org
>WWW: http://cranium.unibe.ch/~mstyner
>
>
>_______________________________________________
>Insight-users mailing list
>Insight-users@public.kitware.com
>http://public.kitware.com/mailman/listinfo/insight-users