<font size=2 face="sans-serif">Hi Aaron,</font>
<br>
<br><font size=2 face="sans-serif">thank you very much für your analysis.
we are currently using cmake, ver 2.8.2.</font>
<br>
<br><font size=2 face="sans-serif">the effect disappears with cmake 2.8.7.
so we have to go for an upgrade.</font>
<br>
<br><font size=2 face="sans-serif">/thanks again and best regards
Walter</font>
<br>
<br>
<br>
<br><font size=1 color=#5f5f5f face="sans-serif">Von:
</font><font size=1 face="sans-serif">aaron.meadows@thomsonreuters.com</font>
<br><font size=1 color=#5f5f5f face="sans-serif">An:
</font><font size=1 face="sans-serif">walter.schwarz@dzbank.de,
cmake@cmake.org</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Datum:
</font><font size=1 face="sans-serif">21.02.2012 14:48</font>
<br><font size=1 color=#5f5f5f face="sans-serif">Betreff:
</font><font size=1 face="sans-serif">RE: [CMake]
custom command and differences between VS2005 and VS2010</font>
<br>
<hr noshade>
<br>
<br>
<br>
<br><font size=3><b>I tried this out with VS 2010 SP0 Win64. Here’s
my CMakeLists:</b></font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3>cmake_minimum_required(VERSION 2.8)</font>
<br>
<br><font size=3> </font>
<br>
<br><font size=3>project(Test CXX)</font>
<br>
<br><font size=3> </font>
<br>
<br><font size=3>file(WRITE foo.h "//Some Foo Header ")</font>
<br>
<br><font size=3>file(WRITE foo.cpp "int main(int argc, char** argv)
{ return 0; }\n")</font>
<br>
<br><font size=3>file(WRITE foo.txt "This is the foo text file (simulated
config)")</font>
<br>
<br><font size=3> </font>
<br>
<br><font size=3>set( etc_hdrs foo.h)</font>
<br>
<br><font size=3> </font>
<br>
<br><font size=3>set( etc_srcs foo.cpp foo.txt)</font>
<br>
<br><font size=3> </font>
<br>
<br><font size=3>add_custom_target( etc SOURCES ${etc_hdrs} ${etc_srcs}
)</font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3><b>For me, the resulting VS Solution has the text file
as a member of the project:</b></font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=1 color=red face="sans-serif">[IMAGE]</font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3><b>Also ended up with an item named ‘etc’, which seems
wrong.. not sure why that would have happened. I’m using CMake 2.8.7
on Windows 7. I wonder if there is something else that is a problem.
What version of CMake are you using?</b></font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3><b>Aaron Meadows</b></font>
<br>
<br><font size=3><b> </b></font>
<br>
<br><font size=3><b>From:</b> cmake-bounces@cmake.org [</font><a href="mailto:cmake-bounces@cmake.org"><font size=3>mailto:cmake-bounces@cmake.org</font></a><font size=3>]
<b>On Behalf Of </b>walter.schwarz@dzbank.de</font>
<br><font size=3><b>Sent:</b> Monday, February 20, 2012 5:37 AM</font>
<br><font size=3><b>To:</b> cmake@cmake.org</font>
<br><font size=3><b>Subject:</b> [CMake] custom command and differences
between VS2005 and VS2010</font>
<br>
<br><font size=3> </font>
<br>
<br><font size=3>our project contains a directory with config files. to
make the config files (and other externally supplied header files) visible
in the visual studio solution, the custom command shown below was specified
in the directory. </font>
<br>
<br><font size=3>this worked well with the generator for Visual Studio
2005. it doesn't any more with the generator for visual studio 2010. </font>
<br>
<br><font size=3>- is this intentional or is it a bug? </font>
<br><font size=3>- what can i do to fix this? </font>
<br>
<br><font size=3>/regards Walter Schwarz </font>
<br>
<br>
<br><font size=3># Targets: none - <u>placeholder</u> for <u>Murex</u>
headers </font>
<br><font size=3># ----------------------------------------------------------------------------
</font>
<br><font size=3># Library: none </font>
<br><font size=3># ----------------------------------------------------------------------------
</font>
<br>
<br><font size=3>set( etc_hdrs </font>
<br><font size=3> ${FLEX_INCLUDE_DIRS}/mdtypes.h </font>
<br><font size=3> ... list shortened ... </font>
<br><font size=3>) </font>
<br>
<br><font size=3>set( etc_srcs FlexModelConfig.cfg configFile.txt ) </font>
<br>
<br><font size=3>include_directories( </font>
<br><font size=3> ${FLEX_INCLUDE_DIRS} </font>
<br><font size=3>) </font>
<br>
<br><font size=3>add_custom_target( etc SOURCES ${etc_hdrs} ${etc_srcs}
) </font>
<br>
<br><font size=3>This email was sent to you by Thomson Reuters, the global
news and information company. Any views expressed in this message are those
of the individual sender, except where the sender specifically states them
to be the views of Thomson Reuters.[attachment "image001.png"
deleted by Walter Schwarz/CT/Frankfurt/DZ BANK] </font>
<br>