[CMake] Ignore installation failure

2018-02-17 Thread David Adam
Hi there, Our project installs an empty directory for other programs to drop files in, the location of which is overrideable with a cache variable. Some environments set the location of this directory outside the writeable area and create it themselves, so I'd like to set up CMake so that it t

Re: [CMake] define addition search path for .cmake files

2018-02-17 Thread J. Caleb Wherry
https://cmake.org/cmake/help/latest/variable/CMAKE_MODULE_PATH.html#variable:CMAKE_MODULE_PATH Should do the trick. Set it before you call project, not sure if it works after that or not. -Caleb On Sat, Feb 17, 2018 at 7:47 AM wrote: > > > Hi! > > So, I have separate installation (root) path f

[CMake] define addition search path for .cmake files

2018-02-17 Thread cmake
Hi! So, I have separate installation (root) path for a project, many libs there, installing their own *.cmake files (VTK, etc.) files into that root. How to define (add) alternative paths for cmake to search for *.cmake files? Testing environment variables without any effect (CMAKE_*). The