MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0010494 | CMake | CMake | public | 2010-03-31 09:36 | 2011-04-04 12:00 |
| Reporter | Elizabeta | ||||
| Assigned To | David Cole | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | CMake 2.8.4 | Fixed in Version | CMake 2.8.3 | ||
| Summary | 0010494: Can not use ${CMAKE_CFG_INTDIR} as output in add_custom_command of VS 2010 generator | ||||
| Description | I am using Cmake 2.8.1. and VS2010 generator If I use the following code, the command is executed every time I build my solution, although the input file ( myfile.txt ) is not changed. set(outfile "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/Foo.txt") add_custom_command(OUTPUT "${outfile}" COMMAND echo Foo > "${outfile}" DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/myfile.txt" ) add_custom_target(Foo DEPENDS "${outfile}") I came to conclusion that this is because foo.txt.rule is not generated by cmake on disk. If I set outfile to the following : set(outfile "Foo.txt") then everything works as it should. That is because in this case foo.txt.rule is made by cmake on the disk. With Visual Studio 2005 generator both examples work as it should, cause VS2005 does not require foo.txt.rule to exist on disk ( actually cmake vs2005 generator does not make such file on disk ). | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://public.kitware.com/Bug/file/3001/cmakelists.txt | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2010-03-31 09:36 | Elizabeta | New Issue | |||
| 2010-03-31 09:36 | Elizabeta | File Added: cmakelists.txt | |||
| 2010-12-14 16:32 | David Cole | Status | new => assigned | ||
| 2010-12-14 16:32 | David Cole | Assigned To | => David Cole | ||
| 2010-12-17 07:41 | David Cole | Target Version | => CMake 2.8.4 | ||
| 2010-12-17 18:21 | David Cole | Note Added: 0024257 | |||
| 2010-12-17 18:21 | David Cole | Status | assigned => resolved | ||
| 2010-12-17 18:21 | David Cole | Fixed in Version | => CMake 2.8.3 | ||
| 2010-12-17 18:21 | David Cole | Resolution | open => fixed | ||
| 2011-04-04 12:00 | David Cole | Note Added: 0026075 | |||
| 2011-04-04 12:00 | David Cole | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||