MantisBT - CMake
View Issue Details
0015297CMakeCMakepublic2014-12-10 09:302016-06-10 14:31
Ilya 
Kitware Robot 
normalmajoralways
closedmoved 
 
 
0015297: External Project cannot set SOURCE_DIR to subfolder of another External Project
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.
No tags attached.
Issue History
2014-12-10 09:30IlyaNew Issue
2014-12-10 09:58Daniele E. DomenichelliNote Added: 0037434
2015-01-02 02:31IlyaNote Added: 0037541
2016-06-10 14:29Kitware RobotNote Added: 0042685
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0037434)
Daniele E. Domenichelli   
2014-12-10 09:58   
Can you add an example of how you are calling ExternalProject_Add?

Also perhaps related to 0015118
(0037541)
Ilya   
2015-01-02 02:31   
@Daniele, there is nothing unusual. I use the ExternalProject_Get_Property command to get source dir of a parent project and then use this source dir to refer a subfolder when I'm adding a dependee.

CMake checks all the directories, notices that this one does not exist (yet) and fails.
(0042685)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.