# Modify default link flag "subsystem"

**URL:** https://discourse.cmake.org/t/modify-default-link-flag-subsystem/13525
**Category:** Code
**Created:** [February 2, 2025, 8:35pm UTC](https://discourse.cmake.org/t/modify-default-link-flag-subsystem/13525 "2025-02-02T20:35:46Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![retif](https://discourse.cmake.org/user_avatar/discourse.cmake.org/retif/32/1776_2.png) [@retif](https://discourse.cmake.org/u/retif)
#### Post date: [February 4, 2025, 8:02am UTC](https://discourse.cmake.org/t/modify-default-link-flag-subsystem/13525/4 "2025-02-04T08:02:12Z")

</div>

Hmm, here’s what I have in my project and that works fine (_unless I misunderstood what you wanted to achieve in yours_):

```cmake
set_target_properties(HERE-IS-MY-EXECUTABLE-TARGET-NAME
    PROPERTIES
    LINK_FLAGS "/ENTRY:mainCRTStartup /SUBSYSTEM:WINDOWS"
)

```

Looking at your code, one difference is that my flags are quoted and another difference is that they are in upper case (_your `/subsystem` is lower-cased_). Not sure if any of these differences matter, though.

Also it could be that you have a typo in your target name? But that would have caused a different kind of problem, unless you have another target with that name.

---

_[View the full topic](https://discourse.cmake.org/t/modify-default-link-flag-subsystem/13525)._
