[CMake] Howto remove artificial CMake dependencies

Bill Hoffman bill.hoffman at kitware.com
Fri Jul 31 09:29:55 EDT 2009


Gerhard Gappmeier wrote:
> Hi
> 
> When generating Makefiles, VS projects or Eclipse CDT projects
> CMake creates artificial dependencies to CMakeLists.txt to be able to 
> recreate the projects
> when something changes.
> 
> This is good for developers, but not so good for the users (also 
> developers).
> We are making portable SDKs and libraries that we distribute also with 
> source so
> that the customer is able to tune and recompile it.
> So we want to create projects without this dependencies that we can ship 
> to the customer.
> We don't want to force our customers to install CMake, what would be an 
> additional burden for them.
> And the customers don't need to recreate this projects because they are 
> just using the libs.
> If they really need the add new files, they would do it with their 
> native IDEs.
> 
> Is it possible to create projects without this dependencies to CMake?
> 
That is not how CMake works.  Your customers will have to install CMake. 
Without a CMake install the Makefiles would not work, as CMake does lots 
of extra checks during make time and computes depend information.  So, 
CMake must be installed on the machine you are building on.

-Bill



More information about the CMake mailing list