<div>Perhaps you need a &quot;*&quot; before .xpm and .gif?</div><div>Perhaps the input files do not exist in &quot;${SGICOMMONLIB_SOURCE_DIR}/&quot;?</div>Perhaps you don&#39;t have write permission in &quot;${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${DIRNAME}/&quot; ?<br>
<br><div>For best results, I&#39;d recommend using something like:</div><div>&gt; FILE(GLOB DEFAULT_CONFIG_FILES &quot;${full_dir_name}/*.xbm&quot; &quot;${full_dir_name}/*.xpm&quot; &quot;${full_dir_name}/*.gif&quot; &quot;${full_dir_name}/*.tif&quot; &quot;${full_dir_name}/*.pal&quot; )</div>
<div><div class="gmail_quote"><br></div><div class="gmail_quote">If you do not have the directory name in the globbing expression, then there is an implied dir that it runs in... I am not sure if that implied dir is CMAKE_CURRENT_SOURCE_DIR or current working directory or something else, because I always use full path directory names in file glob input expressions...</div>
<div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">(But I will grant you that &quot;Problem configuring file&quot; is a pretty lame error message...) :-)</div><div class="gmail_quote">
<br></div><div class="gmail_quote">HTH,</div><div class="gmail_quote">David</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mon, Nov 23, 2009 at 1:29 PM, Eric Noulard <span dir="ltr">&lt;<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">2009/11/23 kent williams &lt;<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>&gt;:<br>
<div class="im">&gt; CMake Error at common/CMakeLists.txt:83 (CONFIGURE_FILE):<br>
&gt;   configure_file Problem configuring file<br>
&gt;<br>
&gt; The issue being the CONFIGURE_FILE command:<br>
&gt;<br>
&gt; PROJECT(SGICOMMONLIB)<br>
&gt; #<br>
&gt; # other stuff removed for brevity.<br>
&gt; #<br>
&gt; SET(DIRNAME pixmaps)<br>
&gt; FILE(GLOB DEFAULT_CONFIG_FILES &quot;*.xbm&quot; &quot;.xpm&quot; &quot;.gif&quot; &quot;*.tif&quot; &quot;*.pal&quot; )<br>
&gt; FOREACH(MODULE ${DEFAULT_CONFIG_FILES} )<br>
&gt;  GET_FILENAME_COMPONENT(CURR_FILENAME ${MODULE} NAME)<br>
&gt;  CONFIGURE_FILE(${SGICOMMONLIB_SOURCE_DIR}/${CURR_FILENAME}<br>
&gt; ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${DIRNAME}/${CURR_FILENAME} COPYONLY<br>
&gt; IMMEDIATE )<br>
&gt;  INSTALL(FILES ${SGICOMMONLIB_SOURCE_DIR}/${DIRNAME}/${CURR_FILENAME}<br>
&gt;                DESTINATION bin/${DIRNAME})<br>
&gt; ENDFOREACH(MODULE)<br>
&gt;<br>
&gt;<br>
&gt; -----------------------------------------------------------------------------------------------<br>
&gt; I think the reason I&#39;m having this trouble is that<br>
&gt; CMAKE_RUNTIME_OUTPUT_DIRECTORY isn&#39;t defined.  But the error message<br>
&gt; doesn&#39;t say anything useful.<br>
<br>
</div>Almost true, you know at least where the problem is and you may add<br>
appropriate MESSAGE(...) to inspect concerned VAR values.<br>
<br>
May be you can suggest some output you would have found useful<br>
and may be file a bug report?<br>
<font color="#888888"><br>
--<br>
Erk<br>
Membre de l&#39;April - « promouvoir et défendre le logiciel libre » -<br>
<a href="http://www.april.org" target="_blank">http://www.april.org</a><br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div>