MantisBT - CMake
View Issue Details
0010448CMakeModulespublic2010-03-23 02:442010-12-14 18:50
Frank May 
David Cole 
normalcrashalways
closedduplicate 
CMake-2-8 
 
0010448: ExternalProject_Add does not work with existing SOURCE_DIR
The documentation says: "If SOURCE_DIR is explicitly set to an existing directory the project will be built from it." So I assume setting SOURCE_DIR explicitly is supposed to skip the download step and build directly from the existing source.

Unfortunately, this is not working, but results in the error message:
"please specify existing SOURCE_DIR or one of URL, CVS_REPOSITORY and CVS_MODULE, SVN_REPOSITORY or DOWNLOAD_COMMAND"
I tried the following command to include an automake-based sub-project that is part of the same repository as the main cmake-based project.

ExternalProject_Add(
  myproject
  PREFIX myproject
  SOURCE_DIR ${CMAKE_SOURCE_DIR}/myproject
  CONFIGURE_COMMAND <SOURCE_DIR>/configure
)

Copying the source directory is not an option, as that loses the dependencies on the original source files and future calls to make will not properly rebuild the sub-project.
No tags attached.
duplicate of 0010346closed David Cole externalproject_add() does not work with only SOURCE_DIR given 
Issue History
2010-03-23 02:44Frank MayNew Issue
2010-03-23 10:27Bill HoffmanStatusnew => assigned
2010-03-23 10:27Bill HoffmanAssigned To => David Cole
2010-04-19 11:51David ColeNote Added: 0020253
2010-04-19 11:51David ColeRelationship addedduplicate of 0010346
2010-04-19 11:51David ColeDuplicate ID0 => 10346
2010-04-19 11:51David ColeStatusassigned => resolved
2010-04-19 11:51David ColeResolutionopen => duplicate
2010-12-14 18:50David ColeNote Added: 0024109
2010-12-14 18:50David ColeStatusresolved => closed

Notes
(0020253)
David Cole   
2010-04-19 11:51   
this is the same issue reported in 10346... monitor that issue instead to find out when it's fixed...
(0024109)
David Cole   
2010-12-14 18:50   
Closing bugs that have been resolved for more than 3 months without any further updates.