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