<div>Perhaps you need a "*" before .xpm and .gif?</div><div>Perhaps the input files do not exist in "${SGICOMMONLIB_SOURCE_DIR}/"?</div>Perhaps you don't have write permission in "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${DIRNAME}/" ?<br>
<br><div>For best results, I'd recommend using something like:</div><div>> FILE(GLOB DEFAULT_CONFIG_FILES "${full_dir_name}/*.xbm" "${full_dir_name}/*.xpm" "${full_dir_name}/*.gif" "${full_dir_name}/*.tif" "${full_dir_name}/*.pal" )</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 "Problem configuring file" 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"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></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 <<a href="mailto:nkwmailinglists@gmail.com">nkwmailinglists@gmail.com</a>>:<br>
<div class="im">> CMake Error at common/CMakeLists.txt:83 (CONFIGURE_FILE):<br>
> configure_file Problem configuring file<br>
><br>
> The issue being the CONFIGURE_FILE command:<br>
><br>
> PROJECT(SGICOMMONLIB)<br>
> #<br>
> # other stuff removed for brevity.<br>
> #<br>
> SET(DIRNAME pixmaps)<br>
> FILE(GLOB DEFAULT_CONFIG_FILES "*.xbm" ".xpm" ".gif" "*.tif" "*.pal" )<br>
> FOREACH(MODULE ${DEFAULT_CONFIG_FILES} )<br>
> GET_FILENAME_COMPONENT(CURR_FILENAME ${MODULE} NAME)<br>
> CONFIGURE_FILE(${SGICOMMONLIB_SOURCE_DIR}/${CURR_FILENAME}<br>
> ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${DIRNAME}/${CURR_FILENAME} COPYONLY<br>
> IMMEDIATE )<br>
> INSTALL(FILES ${SGICOMMONLIB_SOURCE_DIR}/${DIRNAME}/${CURR_FILENAME}<br>
> DESTINATION bin/${DIRNAME})<br>
> ENDFOREACH(MODULE)<br>
><br>
><br>
> -----------------------------------------------------------------------------------------------<br>
> I think the reason I'm having this trouble is that<br>
> CMAKE_RUNTIME_OUTPUT_DIRECTORY isn't defined. But the error message<br>
> doesn'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'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>