[CMake] Troubles with ExternalProject_Add.

Steven Truppe workbench at gmx.at
Sat Jun 8 08:57:33 EDT 2019


Found the error, thank you anyway  -  you guys are allways a good way to
get help about cmake, i'm starting to understand cmake slowly but it's
getting easier and easier, cmake is a great build system.


best regards!

On 08.06.19 14:47, Steven Truppe wrote:
>
> Hi everyone,
>
> I've troubles with ExternalProject_Add:
>
> when i do build the library  manualy (clone the repo and build it with
> mkdir build;cd build; cmake -DCMAKE_BUILD_TYPE:String=Release
> -DGLAD_INSTALL=ON -DCMAKE_INSTALL_PREFIX=/home/stuv/glad_examples) it
> does work and i've the installation at /home/stuv/glad_examples.
>
>
> But the external project add seems to miss an argument because he
> doesn't install anything.
>
> Here the code of ExternalProject_Add:
>
> ExternalProject_Add(external_glad
>          PREFIX ${CMAKE_BINARY_DIR}/glad
>          GIT_REPOSITORY ${GLAD_REPO}
>          GIT_TAG ${GLAD_TAG}
>          GIT_PROGRESS true
>          GIT_SHALLOW True
>          SOURCE_DIR ${CMAKE_BINARY_DIR}/glad-src
>          INSTALL_DIR ${CMAKE_BINARY_DIR}/glad-download
>          CMAKE_ARGS -DCMAKE_BUILD_TYPE:String=${CMAKE_BUILD_TYPE} -DGLAD_INSTALL=ON -DCMAKE_INSTALL_PREFIX=${OUTPUT_PATH}/glad
> )
>
> I hope someone here does see my problem.
>
>
> best regards!
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190608/d2242098/attachment.html>


More information about the CMake mailing list