I played around a bit a now have the following:
set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL)
set(LIBRARY_DIR "${CMAKE_BINARY_DIR}/lib" CACHE STRING INTERNAL)
ExternalProject_Add(
freetype
PREFIX "${BUILD_ENV}/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
)
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.
Isn't the BUILD_COMMAND there if there is no CMakeLists.txt file
available for building ? not many project provide cmake build files....
best regards!
On 19.02.19 06:43, Michael Ellery wrote:
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, workbe...@gmx.at <workbe...@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
--
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