# CMAKE\_XXX\_OUTPUT\_DIRECTORY vs. target properties XXX\_OUTPUT\_DIRECTORY

**URL:** https://discourse.cmake.org/t/cmake-xxx-output-directory-vs-target-properties-xxx-output-directory/4187
**Category:** Usage
**Tags:** comp:msvc, os:windows, gen:ninja
**Created:** [October 1, 2021, 2:05pm UTC](https://discourse.cmake.org/t/cmake-xxx-output-directory-vs-target-properties-xxx-output-directory/4187 "2021-10-01T14:05:25Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![wowengineer](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/w/48db29/32.png) [@wowengineer](https://discourse.cmake.org/u/wowengineer)
#### Post date: [January 13, 2022, 7:43am UTC](https://discourse.cmake.org/t/cmake-xxx-output-directory-vs-target-properties-xxx-output-directory/4187/5 "2022-01-13T07:43:47Z")

</div>

hi, sorry, I am wrong, I met another issue that: duplicated obj file generated, not lib.  
my question is inside : [Two same output obj generated by VS IDE and CMake command line cause LNK4006 - Code - CMake Discourse](https://discourse.cmake.org/t/two-same-output-obj-generated-by-vs-ide-and-cmake-command-line-cause-lnk4006/4833)

could you take a look? Many thanks!

---

_[View the full topic](https://discourse.cmake.org/t/cmake-xxx-output-directory-vs-target-properties-xxx-output-directory/4187)._
