Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
CMake
CMake
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,193
    • Issues 3,193
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 16
    • Merge Requests 16
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • External Wiki
    • External Wiki
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • CMake
  • CMakeCMake
  • Issues
  • #19000

Closed
Open
Opened Feb 28, 2019 by Robert Maynard@robertmaynardDeveloper

ExternalProject setting STAMP_DIR doesn't guide log location anymore

Starting in 3.14 ExternalProject the LOG_DIR option was added to control the location of log files. The documentation states that if STAMP_DIR is set, and not LOG_DIR than the log files are placed in the STAMP_DIR location. This is not the case, instead they are placed in the default STAMP_DIR location, and not the user provided location.

example cmake code:

cmake_minimum_required(VERSION 3.14.0)
include(ExternalProject)

externalproject_add(
    vtkm
    GIT_REPOSITORY "https://github.com/robertmaynard/vtk-m"
    GIT_TAG "bdcb76cadbf8a949473d6"
    INSTALL_DIR "${CMAKE_BINARY_DIR}/install"
    CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/install
    DOWNLOAD_DIR downloads
    SOURCE_DIR vtkm/src
    BINARY_DIR vtkm/build
    STAMP_DIR vtkm/stamp
    LOG_DOWNLOAD ON
    LOG_CONFIGURE ON
    LOG_BUILD ON
)

When we look at the contents on disk we see vtkm-prefix/src/vtkm-stamp/ being used for the log files not vtkm/stamp/:

~/W/m/t/e/build $ ls -l vtkm
total 12
drwxr-xr-x  8 robert robert 4096 Feb 28 16:21 build/
drwxr-xr-x 10 robert robert 4096 Feb 28 16:21 src/
drwxr-xr-x  2 robert robert 4096 Feb 28 16:26 stamp/
~/W/m/t/e/build $ ls -l vtkm/stamp/
total 20
-rw-r--r-- 1 robert robert 1998 Feb 28 16:21 vtkm-build-.cmake
-rw-r--r-- 1 robert robert    0 Feb 28 16:21 vtkm-configure
-rw-r--r-- 1 robert robert 2182 Feb 28 16:21 vtkm-configure-.cmake
-rw-r--r-- 1 robert robert    0 Feb 28 16:21 vtkm-download
-rw-r--r-- 1 robert robert 2112 Feb 28 16:21 vtkm-download-.cmake
-rw-r--r-- 1 robert robert   69 Feb 28 16:21 vtkm-gitclone-lastrun.txt
-rw-r--r-- 1 robert robert   69 Feb 28 16:21 vtkm-gitinfo.txt
-rw-r--r-- 1 robert robert    0 Feb 28 16:21 vtkm-mkdir
-rw-r--r-- 1 robert robert    0 Feb 28 16:21 vtkm-patch
~/W/m/t/e/build $ ls -l vtkm-prefix/src/vtkm-stamp/
total 28
-rw-r--r-- 1 robert robert   361 Feb 28 16:26 vtkm-build-err.log
-rw-r--r-- 1 robert robert 15443 Feb 28 16:26 vtkm-build-out.log
-rw-r--r-- 1 robert robert     0 Feb 28 16:21 vtkm-configure-err.log
-rw-r--r-- 1 robert robert   949 Feb 28 16:21 vtkm-configure-out.log
-rw-r--r-- 1 robert robert   536 Feb 28 16:21 vtkm-download-err.log
-rw-r--r-- 1 robert robert     0 Feb 28 16:21 vtkm-download-out.log
Edited Feb 28, 2019 by Robert Maynard
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
3.14.0
Milestone
3.14.0 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: cmake/cmake#19000