[CMake] Troubles with ExternalProject_Add.
Steven Truppe
workbench at gmx.at
Sat Jun 8 08:47:52 EDT 2019
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/3bb9b19e/attachment.html>
More information about the CMake
mailing list