[cmake-developers] [CMake 0015118]: ExternalProject_Add SOURCE_DIR field overrides DOWNLOAD_DIR field
Mantis Bug Tracker
mantis at public.kitware.com
Sat Aug 30 00:49:12 EDT 2014
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://git@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
======================================================================
More information about the cmake-developers
mailing list