This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
CMAKE_MODULE_PATH not remembered?
- From: Matthew Woehlke <mw_triad at users dot sourceforge dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 23 Aug 2007 15:56:23 -0500
- Subject: CMAKE_MODULE_PATH not remembered?
If I set up a build dir with 'cmake -DCMAKE_MODULE_PATH=<somwehere>
<path-to-src>', I find that 'make' in the build dir, when cmake needs to
be re-run (IIRC 'cmake .' has the same problem) will then fail because
it cannot find a module I INCLUDE().
I was able to work around the problem with the following snippet:
if(CMAKE_MODULE_PATH)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} CACHE PATH "")
endif(CMAKE_MODULE_PATH)
Is there a reason why this is necessary? I would have thought that
anything fed to the initial cmake invocation is always cached?
--
Matthew
.rorrim a ot pu rotinom ruoy dloh ,egassem siht daer oT