Closed mauneyc-LANL closed 2 years ago
@mauneyc-LANL let me know when all tests pass and I will merge. Can't run tests myself at the moment.
@mauneyc-LANL let me know when all tests pass and I will merge. Can't run tests myself at the moment.
I'm not seeing any tests for this code.
I thought there was an install test. Well no big deal either way.
The install test passed. Merging.
Sorry, I just grep'd the CMake for "test", didn't see the directory
No problem.
PR Summary
If used as in-tree as a submodule downstream, cmake will
include()
a file generated byexport()
, which generates an error (see https://cmake.org/cmake/help/v3.17/policy/CMP0024.html). This includes a guard against invoking theinclude()
in the scenario whenports-of-call
is not the main project.This fixes an issue encountered when
singularity-eos
cmake configuration was re-run after the initial cmake generate step. In this case, importingspiner
submodule would use the priorexport()
-edports-of-callConfig.cmake
that was present in the build directory. Due to CMP0024 (above), this would produce an error, and the build directory would need to be cleaned to produce a usable configuration.PR Checklist