MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0011270 | CMake | CMake | public | 2010-09-26 18:19 | 2010-10-06 13:39 |
Reporter | d3x0r | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-8 | ||||
Target Version | CMake 2.8.3 | Fixed in Version | CMake 2.8.3 | ||
Summary | 0011270: Visual Studio 2010 generator makes same object output filename | ||||
Description | this 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 | ||||
Steps To Reproduce | |||||
Additional Information | instead 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) | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | cmake.patch (509) 2010-09-26 18:19 https://public.kitware.com/Bug/file/3413/cmake.patch | ||||
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 |
Notes | |||||
|
|||||
|
|