[CMake] Visual Studio 2010 generator broke? Yes, but not how I thought

David Cole david.cole at kitware.com
Tue Sep 28 05:43:51 EDT 2010


Why do you think this is incorrect?

Either $(Configuration) or $(IntDir) should be acceptable locations for obj
files...


On Sun, Sep 26, 2010 at 11:40 AM, J Decker <d3ck0r at gmail.com> wrote:

> this is the sample cmakelists that causes bad output...
>
> --------------
>
> cmake_minimum_required(VERSION 2.8)
>
> project( launchpad )
> set(BASE_SOURCES launchpad.c launchpad.rc )
> add_executable(${PROJECT_NAME} WIN32 ${BASE_SOURCES} )
>
> -------------
>
> the 'Output File Name' property in visual studio is ...
>      <ObjectFileName>$(Configuration)/launchpad.c.obj</ObjectFileName>
> Normally this is just $(IntDir)
>
> but some reason because I have a resource and a source file the same
> name the output file is different?
>
> and even if it was... it should still be $(IntDir)/launchpad.c.obj  (
> I guess so I can have launchpad.c.obj and launchpad.cpp.obj and
> launchpad.rc.obj ?)
>
>
> Also if I have another project like...
> -----
> project( launchpad2 )
> set(BASE_SOURCES launchpad.c ) # no resources
> add_executable(${PROJECT_NAME} WIN32 ${BASE_SOURCES} )
> -----
>
> the output file of this also becomes $((Configuration)/launchpad.c.obj
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100928/ebfd828e/attachment.htm>


More information about the CMake mailing list