With cmake one can pass compiler options with CMAKE_CXX_FLAGS
and CMAKE_CXX_LINK_FLAGS
to the linker.
But as far as I can see CMAKE_CXX_FLAGS
are passed to the linker as well.
Is there a way to pass options to the compiler but not to the linker?