<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">Hi,<div><br></div><div>I think you need to set the variable CONFIGURE_COMMAND to empty like this:</div><div><br></div><div><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">ExternalProject_Add(<br>        freetype<br>        PREFIX "${BUILD_ENV}/freetype"<br>        GIT_REPOSITORY "<a href="https://github.com/brooklynpacket/freetype2.git">https://github.com/brooklynpacket/freetype2.git</a>"<br>        GIT_TAG 64bit<br></span></font></div></blockquote>         <span style="background-color: rgba(255, 255, 255, 0);">CONFIGURE_COMMAND ""</span><br><blockquote type="cite"><div dir="ltr"><font color="#000000"><span style="caret-color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);">        BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype && ./autgen.sh && ./configure && make"<br>        LOG_DOWNLOAD ON<br>        LOG_INSTALL ON<br>        LOG_CONFIGURE ON<br>        LOG_BUILD ON<br>        LOG_TEST ON<br>        LOG_INSTALL ON</span></font></div></blockquote><blockquote type="cite"><div dir="ltr"><span style="background-color: rgba(255, 255, 255, 0);">        )</span></div></blockquote><br><div id="AppleMailSignature" dir="ltr">Envoyé de mon iPad</div><div dir="ltr"><br>Le 19 févr. 2019 à 06:51, <a href="mailto:Workbench@gmx.at">Workbench@gmx.at</a> <<a href="mailto:workbench@gmx.at">workbench@gmx.at</a>> a écrit :<br><br></div><blockquote type="cite"><div dir="ltr"><span>I played around a bit a now have the following:</span><br><span></span><br><span>set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL)</span><br><span>set(LIBRARY_DIR "${CMAKE_BINARY_DIR}/lib" CACHE STRING INTERNAL)</span><br><span></span><br><span>    ExternalProject_Add(</span><br><span>        freetype</span><br><span>        PREFIX "${BUILD_ENV}/freetype"</span><br><span>        GIT_REPOSITORY "<a href="https://github.com/brooklynpacket/freetype2.git">https://github.com/brooklynpacket/freetype2.git</a>"</span><br><span>        GIT_TAG 64bit</span><br><span>        BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype && ./autgen.sh && ./configure && make"</span><br><span>        LOG_DOWNLOAD ON</span><br><span>        LOG_INSTALL ON</span><br><span>        LOG_CONFIGURE ON</span><br><span>        LOG_BUILD ON</span><br><span>        LOG_TEST ON</span><br><span>        LOG_INSTALL ON</span><br><span>        )</span><br><span></span><br><span>The logs are telling me: CMake Error: The source directory "/home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype" does not appear to contain CMakeLists.txt.</span><br><span></span><br><span>Isn't the BUILD_COMMAND there if there is no CMakeLists.txt file available for building ? not many project provide cmake build files....</span><br><span></span><br><span></span><br><span>best regards!</span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span></span><br><span>On 19.02.19 06:43, Michael Ellery wrote:</span><br><blockquote type="cite"><span>CMAKE_BUILD_DIR is not a standard variable (did you mean CMAKE_BINARY_DIR ?) - and the error seems to indicate that the variable is indeed empty so it tries to create the project directory at the root level.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>-Mike</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><blockquote type="cite"><span>On Feb 18, 2019, at 8:58 PM, <a href="mailto:Workbench@gmx.at">Workbench@gmx.at</a> <<a href="mailto:workbench@gmx.at">workbench@gmx.at</a>> wrote:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Hi again,</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>i try to install my dependencies with ExternalProjectAdd but it gives me troubles... what's wrong with</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>     ExternalProject_Add(</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         freetype</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         PREFIX "${CMAKE_BUILD_DIR}/freetype"</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         GIT_REPOSITORY "<a href="https://github.com/brooklynpacket/freetype2.git">https://github.com/brooklynpacket/freetype2.git</a>"</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         GIT_TAG 64bit</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype && ./autgen.sh && ./configure && make"</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         LOG_DOWNLOAD ON</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         LOG_INSTALL ON</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         LOG_CONFIGURE ON</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         LOG_BUILD ON</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         LOG_TEST ON</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         LOG_INSTALL ON</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>         )</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>best regards!</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>-- </span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Kitware offers various services to support the CMake community. For more information on each offering, please visit:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span></span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span>Follow this link to subscribe/unsubscribe:</span><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><span><a href="https://cmake.org/mailman/listinfo/cmake">https://cmake.org/mailman/listinfo/cmake</a></span><br></blockquote></blockquote><blockquote type="cite"><span></span><br></blockquote><span>-- </span><br><span></span><br><span>Powered by <a href="http://www.kitware.com">www.kitware.com</a></span><br><span></span><br><span>Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ">http://www.cmake.org/Wiki/CMake_FAQ</a></span><br><span></span><br><span>Kitware offers various services to support the CMake community. For more information on each offering, please visit:</span><br><span></span><br><span>CMake Support: <a href="http://cmake.org/cmake/help/support.html">http://cmake.org/cmake/help/support.html</a></span><br><span>CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html">http://cmake.org/cmake/help/consulting.html</a></span><br><span>CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html">http://cmake.org/cmake/help/training.html</a></span><br><span></span><br><span>Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a></span><br><span></span><br><span>Follow this link to subscribe/unsubscribe:</span><br><span><a href="https://cmake.org/mailman/listinfo/cmake">https://cmake.org/mailman/listinfo/cmake</a></span><br></div></blockquote></div></body></html>