[CMake] Prevent make (linux) from fowling dependencies out of cwd

Mark Miller miller86 at llnl.gov
Fri Feb 25 00:06:20 EST 2011


No, I mean build everything in the whole tree at and below cwd but not
to 'go out of' cwd.

Mark

On Thu, 2011-02-24 at 20:16, Martin O'Brien wrote:
> Do you mean not even build subdirectories?
> 
> On Feb 24, 2011 11:09 PM, "Mark Miller" <miller86 at llnl.gov> wrote:
> > I am on a large project that uses CMake. I do my development
> primarily
> > on Linux. Prior to introduction of CMake, the makefiles we produced
> > would be such that I could cd into some directory and type something
> > like 'make -j 4' and it would make everything in that directory AND
> ONLY
> > that directory, in parallel.
> > 
> > However, now with the Makefiles that CMake is producing, that is no
> > longer possible. Or, at least I don't know how to invoke either
> CMake
> > (to generate the Makefiles) or perhaps make with appropriate
> variable(s)
> > set to affect desired behavior.
> > 
> > Does anyone know of a way to do this? Is there a way to invoke CMake
> > such that the resulting Makefiles do not 'follow dependencies' out
> of
> > cwd? Or, are there maybe some Make variables CMake defines that I
> can
> > then pass to Make to prevent it from following dependencies out of
> cwd?
> > 
> > I suppose I'd even accept a solution that required (minor)
> adjustments
> > to top-level CMakeLists.txt file to affect this behavior.
> > 
> > Thanks in advance for any help.
> > 
> > Mark
> > 
> > 
> > 
> > -- 
> > Mark C. Miller, Lawrence Livermore National Laboratory
> > ================!!LLNL BUSINESS ONLY!!================
> > miller86 at llnl.gov urgent: miller86 at pager.llnl.gov
> > T:8-6 (925)-423-5901 M/W/Th:7-12,2-7 (530)-753-8511
> > 
> > _______________________________________________
> > Powered by www.kitware.com
> > 
> > Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> > 
> > Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
> > 
> > Follow this link to subscribe/unsubscribe:
> > http://www.cmake.org/mailman/listinfo/cmake
-- 
Mark C. Miller, Lawrence Livermore National Laboratory
================!!LLNL BUSINESS ONLY!!================
miller86 at llnl.gov      urgent: miller86 at pager.llnl.gov
T:8-6 (925)-423-5901    M/W/Th:7-12,2-7 (530)-753-8511



More information about the CMake mailing list