<div dir="ltr"><div><div><div><div>Hi Jameson, <br><br></div>There is indeed a recipe, assuming you are using ExternalProjectDependency.cmake from Artichoke [1], if you pass the variable to your project using ${CMAKE_CFG_INTDIR} it will be automatically passed as CMAKE_ARGS (instead of CMAKE_CACHE_ARGS) to external project and it will be expended appropriately at build time.<br>

<br></div>For example, see [2] and [3]<br><br></div><div>For reference, consider also reading [4]<br></div><div><br></div>Let me know if you would like me to clarify, <br></div>Jc<br><div><div><br>[1] <a href="https://github.com/commontk/Artichoke">https://github.com/commontk/Artichoke</a><br>

[2] <a href="https://github.com/Slicer/Slicer/blob/57f14d0d233ee103e365161cfc0b3962df0bc203/SuperBuild/External_OpenSSL.cmake#L152">https://github.com/Slicer/Slicer/blob/57f14d0d233ee103e365161cfc0b3962df0bc203/SuperBuild/External_OpenSSL.cmake#L152</a><br>

[3] <a href="https://github.com/Slicer/Slicer/blob/50281153c57c683106498295ea82472eaa20eee4/SuperBuild/External_VTKv5.cmake#L132">https://github.com/Slicer/Slicer/blob/50281153c57c683106498295ea82472eaa20eee4/SuperBuild/External_VTKv5.cmake#L132</a><br>

[4] <a href="http://www.cmake.org/cmake/help/git-master/variable/CMAKE_CFG_INTDIR.html">http://www.cmake.org/cmake/help/git-master/variable/CMAKE_CFG_INTDIR.html</a><br></div></div></div><div class="gmail_extra"><br><br>
<div class="gmail_quote">
On Sun, Jun 15, 2014 at 1:01 PM, jmerkow <span dir="ltr"><<a href="mailto:jmerkow@gmail.com" target="_blank">jmerkow@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Ok I have one final question.<br>
<br>
One of the project is built using CMake but does not contain a config file.<br>
On unix systems (make file based generators) it works fantastic, but with<br>
windows (and I presume xcode), the libraries are output to the buildtype<br>
directory.  i.e. Debug/ or Release/. I can add some find_library logic to<br>
its externalproject file, and search all the possible build type<br>
directories.<br>
But it occurs to me that there might be a recipe for this.<br>
<br>
Any advice?<br>
<br>
-Jameson<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://cmake.3232098.n2.nabble.com/Question-regarding-External-Project-add-and-VTK-tp7587557p7587690.html" target="_blank">http://cmake.3232098.n2.nabble.com/Question-regarding-External-Project-add-and-VTK-tp7587557p7587690.html</a><br>


<div class="">Sent from the CMake mailing list archive at Nabble.com.<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</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>
Follow this link to subscribe/unsubscribe:<br>
</div><a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>+1 919 869 8849<br>
</div>