[cmake-developers] [CMake 0015297]: External Project cannot set SOURCE_DIR to subfolder of another External Project

Mantis Bug Tracker mantis at public.kitware.com
Wed Dec 10 09:30:03 EST 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=15297 
====================================================================== 
Reported By:                Ilya
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15297
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-12-10 09:30 EST
Last Modified:              2014-12-10 09:30 EST
====================================================================== 
Summary:                    External Project cannot set SOURCE_DIR to subfolder
of another External Project
Description: 
I have an External Project that fetches sources from git repo. This repo has
submodules.
I want another External Project to refer this directory. However it does not
work: build script generated by cmake fails on first start.

If SOURCE_DIR for dependent External Project refers to SOURCE_DIR of main
External Project it works.

It looks like build system generated by CMake attempts to validate directory,
but it cannot simply because there is no way CMake could now of project
structure.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-12-10 09:30 Ilya           New Issue                                    
======================================================================



More information about the cmake-developers mailing list