<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">You probably need to manually add a dependency from your ExternalProject to your target that needs the libraries.<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">For instance<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> ExternalProject_Add(fetch_win32_libs ...)<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> add_library(your_other_target ...)<br></div><div class="gmail_default" style="font-family:tahoma,sans-serif"> add_dependencies(your_other_target fetch_win32_libs)<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Greetings<br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:tahoma,sans-serif">Kai Wolf<br><br></span>
<span style="font-family:tahoma,sans-serif"><a href="http://kai-wolf.me/" target="_blank">http://kai-wolf.me/</a><br></span></div><span style="font-family:tahoma,sans-serif"><a href="mailto:kai.wolf@gmail.com" target="_blank">kai.wolf@gmail.com</a><br></span></div></div></div></div></div>
<br><div class="gmail_quote">2018-05-02 8:47 GMT+02:00 Stéphane Ancelot <span dir="ltr"><<a href="mailto:sancelot@numalliance.com" target="_blank">sancelot@numalliance.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I have got some win32 libraries dependencies stored in a project .<br>
<br>
Then I added ExternalProject_Add at beginning of my cmakelists file in order to clone this dependency to be available.<br>
<br>
and then provide the root path as follow:<br>
<br>
SET(CMAKE_FIND_ROOT_PATH /usr/i586-mingw32msvc<br>
${CMAKE_CURRENT_SOURCE_DIR}/WI<wbr>N32DEPS/JPEGLIB/jpegsrc-9c<br>
${CMAKE_CURRENT_SOURCE_DIR}/WI<wbr>N32DEPS/zlib-1.2.3-lib<br>
${CMAKE_CURRENT_SOURCE_DIR}/WI<wbr>N32DEPS/libpng-1.2.37-lib<br>
${CMAKE_CURRENT_SOURCE_DIR}/WI<wbr>N32DEPS/ftgl-binary<br>
${CMAKE_CURRENT_SOURCE_DIR}/WI<wbr>N32DEPS/freetype-dev_2.4.2-1<br>
${CMAKE_CURRENT_SOURCE_DIR}/WI<wbr>N32DEPS/iconv-1.9.2.1<br>
)<br>
<br>
<br>
unfortunately, the project is not cloned when cmake is launched and the next dependencies don't find the packages :-(<br>
<br>
What Can I do ?<br>
<br>
Regards,<br>
<br>
S.Ancelot<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" 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" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_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" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://cmake.org/mailman/listinfo/cmake" rel="noreferrer" target="_blank">https://cmake.org/mailman/list<wbr>info/cmake</a><br>
</blockquote></div><br></div></div>