Help => General => Topic started by: netrick on January 14, 2013, 05:59:31 pm
Title: How to compile only selected modules
Post by: netrick on January 14, 2013, 05:59:31 pm
From obvious reasons on my linux VPS I need only to compile system and network module (I don't want to add a lot of dependencies for graphics etc). However I have no idea how can I do this using terminal cmake. Any advices?
Title: Re: How to compile only selected modules
Post by: Laurent on January 14, 2013, 09:23:58 pm
make sfml-system make sfml-network
?
Title: Re: How to compile only selected modules
Post by: netrick on January 15, 2013, 10:41:27 pm
I didn't know it's so simple. Thanks. But how will "cmake ." behave when it won't find dependencies for graphics etc?
Title: Re: How to compile only selected modules
Post by: Laurent on January 16, 2013, 07:52:06 am
Quote
I didn't know it's so simple.
All the make targets are explained in the "compiling SFML" tutorial.
Quote
But how will "cmake ." behave when it won't find dependencies for graphics etc?
I think it will stop with a fatal error ;D I should probably add options to select a subset of modules to build. What you can do is to edit the CMakeLists.txt manually and remove the "add_subdirectory(<module>)" lines for modules that you don't want to compile.