[CMake] How do I link an executable WITHOUT standard libraries?
Hendrik Sattler
post at hendrik-sattler.de
Sun Jun 14 06:16:44 EDT 2009
Am Samstag 13 Juni 2009 00:16:43 schrieb Eric Lemings:
> I've tried clearing the CMAKE_STANDARD_LIBRARIES,
> CMAKE_C_STANDARD_LIBRARIES, and CMAKE_CXX_STANDARD_LIBRARIES variables
> and standard libraries still get linked into my executable. How do I
> disable this?
Read the compiler/linker documentation?
For gcc:
-Wl,nostdlib -Wl,nodefaultlibs
HS
More information about the CMake
mailing list