A
A
Atilla2015-10-28 00:26:37
CMake
Atilla, 2015-10-28 00:26:37

Preloading a project in Cmake?

My project uses ChibiOS RTOS and Cmake as builder. But I can’t quite understand how to check the presence of this library in Cmake (it will just go to check if the folder exists or not) and if it doesn’t exist, then pull a specific branch or commit from git / svn.
I found ExternalProject_Add, but Chibios is not built as a library - it needs to be compiled along with the project files. But as far as I understand, ExternalProject_Add just adds a dependency for the Makefile, and Chibios must be downloaded before add_executable, so that I can specify which files from Chibios to compile.
So far, I can't find how to do it.

Answer the question

In order to leave comments, you need to log in

Similar questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question