Why do you think this is incorrect?<div><br></div><div>Either $(Configuration) or $(IntDir) should be acceptable locations for obj files...<br><br></div><div><br><div class="gmail_quote">On Sun, Sep 26, 2010 at 11:40 AM, J Decker <span dir="ltr"><<a href="mailto:d3ck0r@gmail.com">d3ck0r@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">this is the sample cmakelists that causes bad output...<br>
<br>
--------------<br>
<br>
cmake_minimum_required(VERSION 2.8)<br>
<br>
project( launchpad )<br>
set(BASE_SOURCES launchpad.c launchpad.rc )<br>
add_executable(${PROJECT_NAME} WIN32 ${BASE_SOURCES} )<br>
<br>
-------------<br>
<br>
the 'Output File Name' property in visual studio is ...<br>
<ObjectFileName>$(Configuration)/launchpad.c.obj</ObjectFileName><br>
Normally this is just $(IntDir)<br>
<br>
but some reason because I have a resource and a source file the same<br>
name the output file is different?<br>
<br>
and even if it was... it should still be $(IntDir)/launchpad.c.obj (<br>
I guess so I can have launchpad.c.obj and launchpad.cpp.obj and<br>
launchpad.rc.obj ?)<br>
<br>
<br>
Also if I have another project like...<br>
-----<br>
project( launchpad2 )<br>
set(BASE_SOURCES launchpad.c ) # no resources<br>
add_executable(${PROJECT_NAME} WIN32 ${BASE_SOURCES} )<br>
-----<br>
<br>
the output file of this also becomes $((Configuration)/launchpad.c.obj<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</blockquote></div><br></div>