MantisBT - CMake
View Issue Details
0015560CMakeCMakepublic2015-05-08 06:052015-11-02 09:15
LCID Fire 
Brad King 
normaltextalways
closedfixed 
x86_64Windows7
CMake 3.2.2 
CMake 3.3CMake 3.3 
0015560: EXTERNALPROJECT_ADD with missing SOURCE_DIR gives unclear error
When specifying SOURCE_DIR, I get the same as bug 0010346:

error: no download info for 'libtorrent' -- please specify
  existing/non-empty SOURCE_DIR or one of URL, CVS_REPOSITORY and CVS_MODULE,
  SVN_REPOSITORY, GIT_REPOSITORY, HG_REPOSITORY or DOWNLOAD_COMMAND

Has this regressed?
ExternalProject_Add( libtorrent
    SOURCE_DIR lib/libtorrent
)
No tags attached.
Issue History
2015-05-08 06:05LCID FireNew Issue
2015-05-08 06:10LCID FireNote Added: 0038730
2015-05-08 09:34Brad KingNote Added: 0038733
2015-05-08 09:35Brad KingAssigned To => Brad King
2015-05-08 09:35Brad KingSeverityfeature => text
2015-05-08 09:35Brad KingStatusnew => resolved
2015-05-08 09:35Brad KingResolutionopen => fixed
2015-05-08 09:35Brad KingFixed in Version => CMake 3.3
2015-05-08 09:35Brad KingTarget Version => CMake 3.3
2015-05-08 09:35Brad KingSummaryEXTERNALPROJECT_ADD does not longer build from SOURCE_DIR => EXTERNALPROJECT_ADD with missing SOURCE_DIR gives unclear error
2015-11-02 09:15Robert MaynardNote Added: 0039804
2015-11-02 09:15Robert MaynardStatusresolved => closed

Notes
(0038730)
LCID Fire   
2015-05-08 06:10   
*argh* Sorry, I did not use the path relative to the source. Tried to find lib/libtorrent in build directory.
(0038733)
Brad King   
2015-05-08 09:34   
I've improved the error message to make this mistake easier to notice:

 ExternalProject: Improve error when SOURCE_DIR is missing
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=dcb18836 [^]
(0039804)
Robert Maynard   
2015-11-02 09:15   
Closing resolved issues that have not been updated in more than 4 months.