krytarowski added a comment. For such options there are designed other options, like `CMAKE_EXE_LINKER_FLAGS`. `target_link_libraries()` should be used for libraries. Repository: rL LLVM https://reviews.llvm.org/D43168