[CMake] Problems with EnternalProjectAdd

Michael Ellery mellery451 at gmail.com
Tue Feb 19 00:43:43 EST 2019


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.

-Mike

> On Feb 18, 2019, at 8:58 PM, Workbench at gmx.at <workbench at gmx.at> wrote:
> 
> Hi again,
> 
> i try to install my dependencies with ExternalProjectAdd but it gives me troubles... what's wrong with
> 
> 
>     ExternalProject_Add(
>         freetype
>         PREFIX "${CMAKE_BUILD_DIR}/freetype"
>         GIT_REPOSITORY "https://github.com/brooklynpacket/freetype2.git"
>         GIT_TAG 64bit
>         BUILD_COMMAND "cd ${CMAKE_BUILD_DIR}/freetype/src/freetype && ./autgen.sh && ./configure && make"
>         LOG_DOWNLOAD ON
>         LOG_INSTALL ON
>         LOG_CONFIGURE ON
>         LOG_BUILD ON
>         LOG_TEST ON
>         LOG_INSTALL ON
>         )
> 
> best regards!
> 
> -- 
> 
> Powered by www.kitware.com
> 
> Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ
> 
> Kitware offers various services to support the CMake community. For more information on each offering, please visit:
> 
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list