[Insight-users] Beginner's Questions on ITK and Visual Studio 2005
Luis Ibanez
luis.ibanez at kitware.com
Tue Apr 4 10:06:24 EDT 2006
Hi An,
It is common for CMake to have duplicates in the list of libraries
to be used for linking. This is something that could be improved.
I would *strongly* discourage you from modifying the Visual Studio
projects, once they have been generated by CMake.
The main reason is that CMake will regenerate the project if it
finds that anything has changed in the configuration, and at that
point you will lose any changes that you may have introduced manually.
If you want to make configuration changes you should do them in the
CMakeLists.txt files and not in the resulting VS projects.
The messages that you are seeing (e.g.):
”The project ‘ImageRegistration1’ has been
modified outside the environment..."
are the result of CMake running again, and regenerating the
Visual Studio project while you still have it open in the IDE.
In order to avoid this circular situation you should simply close
the project in your Visual Studio IDE (or quit VC++ althgether),
then run CMake directly, in order to regenerate the VS project,
and finally open the project again with Visual Studio.
Regards,
Luis
----------------------------------------
An, Li (NIH/NINDS) [E] wrote:
> I just started experimenting with ITK. I successfully built the example
> project “ImageRegistration1”. When I took a look at the Project
> Properties->Linker->Input->Additional Dependencies, I found that many
> .lib files are listed multiple times. For example, the ITKNumerics.lib
> file is listed twice or three times. What is the reason for this? I
> manually deleted one ITKNumerics.lib entry from the Additional
> Dependencies, then rebuilt the project. The build was still successful
> as expected but Visual Studio 2005 popped up a window:”The project
> ‘ImageRegistration1’ has been modified outside the environment. Press
> Reload to load the updated project from disk, Press Ignore to ignore the
> external changes. The changes will be used the next time you open the
> project” What is the reason for this message?
>
>
>
> Thanks in advance.
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list