Hi everyone,

i'm trying to get ExternalProject_Add to work for a day now and i come to a strange error, first the code:

set(BUILD_DIR "${CMAKE_BINARY_DIR}/build_files" CACHE STRING INTERNAL)
set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL)
set(LIBRARY_DIR "${CMAKE_BINARY_DIR}/lib" CACHE STRING INTERNAL)


    include(ExternalProject)
    ExternalProject_Add(
        freetype
        TMP_DIR ${BULD_DIR}
        LIST_SEPARATOR ;
        PREFIX ${BUILD_ENV}/freetype
        GIT_REPOSITORY "https://github.com/brooklynpacket/freetype2.git";
        GIT_TAG 64bit
        #CMAKE_ARGS -DCMAKE_INSTALL_PREFIX={LIBRARY_DIR}/freetype
        CONFIGURE_COMMAND ""
        BINARY_DIR "${BULD_ENV}"
        BUILD_COMMAND "cd ${BUILD_ENV}/freetype/src/freetype && ./autogen.sh && ./configure && make"
        LOG_DOWNLOAD ON
        LOG_INSTALL ON
        LOG_CONFIGURE ON
        LOG_BUILD ON
        LOG_TEST ON
        LOG_INSTALL ON
        )


now the error i get is:

CMake Error at /home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype-stamp/freetype-build-.cmake:16 (message):
  Command failed: No such file or directory

   'cd /home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype && ./autogen.sh && ./configure && make'

  See also

/home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype-stamp/freetype-build-*.log

The log files are empty and when i run the command from the command line it's working... is this a bug or am i doing something really wrong ?


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-developers

Reply via email to