The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15118 
====================================================================== 
Reported By:                Umar Arshad
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15118
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-08-30 00:49 EDT
Last Modified:              2014-08-30 00:49 EDT
====================================================================== 
Summary:                    ExternalProject_Add SOURCE_DIR field overrides
DOWNLOAD_DIR field
Description: 
Setting the SOURCE_DIR field forces the download of a repository to that
directory instead of the DOWNLOAD_DIR directory. This seems counter to what the
documentation suggest since the SOURCE_DIR field is under the configuration
section. This makes it difficult to add projects who's CMakeLists.txt files are
not in the root folder of the repository (i.e. clBLAS)

DOWNLOAD_DIR should be where the project is downloaded/cloned
SOURCE_DIR should be the location of the CMakeLists.txt file

Steps to Reproduce: 
# Set default ExternalProject root directory
set_directory_properties(PROPERTIES EP_PREFIX ${CMAKE_BINARY_DIR}/third_party)

ExternalProject_Add(
    clBlas
    GIT_REPOSITORY ssh://g...@github.com/clMathLibraries/clBLAS.git
    GIT_TAG "v2.2"
    TIMEOUT 10
    DOWNLOAD_DIR ${CMAKE_BINARY_DIR}/third_party/src/clBlas
    SOURCE_DIR  ${CMAKE_BINARY_DIR}/third_party/src/clBlas/src
    CMAKE_ARGS  -DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}
                -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG:PATH=DebugLibs
                -DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE:PATH=ReleaseLibs
                -DCMAKE_CXX_COMPILER=${CMAKE_CXX_COMPILER}
                -DCMAKE_CXX_FLAGS=${CMAKE_CXX_FLAGS})

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-08-30 00:49 Umar Arshad    New Issue                                    
2014-08-30 00:49 Umar Arshad    File Added: BuildCLBLAS.cmake                   

======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to