Here’s a complete example that works on my system - maybe you can tweak it to
your liking:
cmake_minimum_required (VERSION 3.9.0)
include (ExternalProject)
project (simple_ep)
set(BUILD_ENV "${CMAKE_BINARY_DIR}/build_env" CACHE STRING INTERNAL)
ExternalProject_Add(
freetype
PREFIX "${BUILD_E
try using
SOURCE_DIR = ${CMAKE_BINARY_DIR}/freetype/src/freetype
CONFIGURE_COMMAND = ./autgen.sh && ./configure
BUILD_COMMAND = make
It should git clone into SOURCE_DIR, configure the source by running
CONFIGURE_COMMAND and build it using BUILD_COMMAND, You may need
INSTALL_COMMAND = "" if you don
Can't i somehow output the pwd ??
best regards!
On 19.02.19 07:04, workbe...@gmx.at wrote:
Now i'm getting:
Command failed: No such file or directory
'cd
/home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype
&& ./autogen.sh && ./configure && make'
but
Now i'm getting:
Command failed: No such file or directory
'cd
/home/stuv/data/projects/programming/bsUltimate/build/build_env/freetype/src/freetype
&& ./autogen.sh && ./configure && make'
but when i go to my bsUltimate path and type that command it works...
best regards!
On 19.02.19
Hi,
I think you need to set the variable CONFIGURE_COMMAND to empty like this:
> ExternalProject_Add(
> freetype
> PREFIX "${BUILD_ENV}/freetype"
> GIT_REPOSITORY "https://github.com/brooklynpacket/freetype2.git";
> GIT_TAG 64bit
CONFIGURE_COMMAND ""
>
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://g
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 wrote:
>
> Hi again,
>
> i try
I forgot the error message:
CMake Error at
/usr/local/share/cmake-3.13/Modules/ExternalProject.cmake:1659 (file):
file problem creating directory: /freetype/src/freetype-stamp
Call Stack (most recent call first):
/usr/local/share/cmake-3.13/Modules/ExternalProject.cmake:3057
(_ep_set_direc
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 64b