View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011270CMakeCMakepublic2010-09-26 18:192010-10-06 13:39
Reporterd3x0r 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0011270: Visual Studio 2010 generator makes same object output filename
Descriptionthis is the sample cmakelists that causes bad output... When a .c file and a .rc share the same base name...

--------------

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
Additional Informationinstead of referencing just $(Configuation) when the object name has a special property set (tried to find the property to just set with set_source_files_properties instead of using a duplicate filename)
TagsNo tags attached.
Attached Filespatch file icon cmake.patch [^] (509 bytes) 2010-09-26 18:19 [Show Content]

 Relationships

  Notes
(0022361)
Brad King (manager)
2010-09-27 09:06

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7ef659fc [^]

 Issue History
Date Modified Username Field Change
2010-09-26 18:19 d3x0r New Issue
2010-09-26 18:19 d3x0r File Added: cmake.patch
2010-09-26 19:00 Bill Hoffman Status new => assigned
2010-09-26 19:00 Bill Hoffman Assigned To => Brad King
2010-09-27 01:18 Kovarththanan Rajaratnam Category CCMake => CMake
2010-09-27 09:06 Brad King Note Added: 0022361
2010-09-27 09:06 Brad King Status assigned => closed
2010-09-27 09:06 Brad King Resolution open => fixed
2010-10-06 13:39 David Cole Fixed in Version => CMake 2.8.3
2010-10-06 13:39 David Cole Target Version => CMake 2.8.3


Copyright © 2000 - 2018 MantisBT Team