"make cmake" has to be run twice
Issue #240
resolved
Something changed in the cmake build.
Before, “make cmake” will build everything, a second “make cmake” will do nothing (reports everything “up-to-date”).
Now, “make cmake” builds everything (the best I can tell), a second “make cmake” builds almost (not everything, I am pretty sure) again. A third “make cmake” builds nothing (everything is “up-to-date”).
What happened?
K.O.
Comments (2)
-
-
reporter - changed status to resolved
this problem no longer happens. K.O.
- Log in to comment
If I do
then the first make builds all (after a clean), and the second make does nothing.
So the problem must come from the way make is called in the build directory by the toplevel Makefile. Looking at the Makefile, I see that both $(CMAKE) and $(MAKE) are called. $(CMAKE) should only be called once after creating the build directory. If the CMakeLists.txt change, the $(MAKE) will automatically detect this and run $(CMAKE) internally.