[CMake] How to set own linker?

Florian Reinhard florian.reinhard at googlemail.com
Fri Sep 23 08:37:52 EDT 2011


here some points that should help you find a solution (just as a hint
where or what to search)

ENABLE_LANGUAGE(ASM_OCU)
PROJECT (foo)
SET(CMAKE_EXE_LINKER_FLAGS "-abcdfg" ) <-- does work for me!
add_executable(foo_target ${FOO_SRC})
SET_TARGET_PROPERTIES(foo_target PROPERTIES LINKER_LANGUAGE C)
SET_TARGET_PROPERTIES(foo_target PROPERTIES LINK_FLAGS "-abcdfg")


More information about the CMake mailing list