If the projects are truly independent, you may also want to look at the
external_project command.
Regards,
Micha
On 12/10/2014 03:42 PM, Petr Bena wrote:
> I have 3 projects, all using cmake. When I run cmake on each of them
> and separately build them, it's all fine.
>
> When I use include() on
I think you may want to try the add_subdirectory() command instead of
include(), if you truly have multiple projects that are being built by
CMake. The name suggests that it would only work with a hierarchical
directory structure, but that is not the case - you can specify absolute
paths if necessa
Yup, that works.
Thanks
On Wed, Dec 10, 2014 at 3:48 PM, Parag Chandra wrote:
> I think you may want to try the add_subdirectory() command instead of
> include(), if you truly have multiple projects that are being built by
> CMake. The name suggests that it would only work with a hierarchical
>
I would try using add_subdirectory() instead of include()
On Wed, Dec 10, 2014 at 9:42 AM, Petr Bena wrote:
> I have 3 projects, all using cmake. When I run cmake on each of them
> and separately build them, it's all fine.
>
> When I use include() on these 2 cmake files in 1 of them, so that I
>
I have 3 projects, all using cmake. When I run cmake on each of them
and separately build them, it's all fine.
When I use include() on these 2 cmake files in 1 of them, so that I
could run only 1 cmake and then build them all using 1 make, it fails.
I believe that these 3 cmakes are colliding wit