[CMake] How to TRY_COMPILE a static executable?

Denis Scherbakov denis_scherbakov at yahoo.com
Tue May 12 13:38:53 EDT 2009


I know that static is bad, but in order to be consistent with an upper-level project I must
TRY_COMPILE a static executable. This means I must somehow pass
CMAKE_EXE_LINKER_FLAGS to it which holds -static. Does anybody know a way?

Denis


      


More information about the CMake mailing list