[CMake] Proper way to build static binaries

David Demelier demelier.david at gmail.com
Thu Sep 15 09:07:57 EDT 2011


Hi,

I'm surprised to see that there is no optional [STATIC] argument in 
add_executable cmake command. I think it should be very important to 
have this because a lot of people like having static binaries.

Thus for the moment what is the best way and more portable way to set a 
binary to be build as static ?

Cheers,

-- 
David Demelier


More information about the CMake mailing list