Re: [CMake] Cache variables from module

2018-05-03 Thread Isaiah Norton
> > Perhaps a newer cmake version will give an error. > Just tested with 3.11 -- sadly not. But the suggested fix does work. On Thu, May 3, 2018 at 10:39 AM, Isaiah Norton wrote: > PARENT_SCOPE and CACHE can't be used in the same call, presumably because > cache is

Re: [CMake] Cache variables from module

2018-05-03 Thread Isaiah Norton
PARENT_SCOPE and CACHE can't be used in the same call, presumably because cache is global. So cmake doesn't recognize those arguments, and instead sets the variable PETSC_VERSION to a list containing all the following arguments except PARENT_SCOPE (which does still apply). Perhaps a newer cmake

[CMake] Cache variables from module

2018-05-03 Thread Florian Lindner
Hello, I have a third party FindPETSc.cmake module: https://github.com/jedbrown/cmake-modules/blob/master/FindPETSc.cmake The problem I have, is that variable PETSC_VERSION is not set when cmake is run for a second time https://github.com/jedbrown/cmake-modules/issues/28 What is best way to