MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0013510 | CMake | CMake | public | 2012-09-03 07:30 | 2013-03-04 08:38 |
| Reporter | raspy | ||||
| Assigned To | Peter Kuemmel | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Linux | OS | RHEL | OS Version | 5.4 |
| Product Version | CMake 2.8.9 | ||||
| Target Version | CMake 2.8.10 | Fixed in Version | CMake 2.8.10 | ||
| Summary | 0013510: OBJECT_DIR is not expanded for Ninja generator | ||||
| Description | Our compilation rule looks as follows: <CMAKE_C_COMPILER> <DEFINES> <FLAGS> -fr=<OBJECT_DIR> <SOURCE> Trying to use Ninja generator fails: CMake Error at /home/user/cmake-2.8.9-Linux-i386/share/cmake-2.8/Modules/CMakeTestCCompiler.cmake:52 (MESSAGE): The C compiler "/path/to/cgtools/bin/cl6x" is not able to compile a simple test program. It fails with the following output: Change Dir: /path/to/build/CMakeFiles/CMakeTmp Run Build Command:/path/to/ninja cmTryCompileExec2716513962 [1/2] Building C object CMakeFiles/cmTryCompileExec2716513962.dir/testCCompiler.obj FAILED: /path/to/cgtools/bin/cl6x -fr=OBJECT_DIR testCCompiler.c "/tmp/13712I59qtv", ERROR! at EOF: [E1500] file access error: failed to open "OBJECT_DIR/testCCompiler.obj" for writing "/tmp/13712I59qtv", ERROR! : [E1000] Failed to write object file : OBJECT_DIR/testCCompiler.obj >> Compilation failure ninja: build stopped: subcommand failed. CMake will not be able to correctly generate this project. | ||||
| Steps To Reproduce | Use: SET(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> <DEFINES> <FLAGS> -fr=<OBJECT_DIR> <SOURCE>") Then run cmake -G Ninja . | ||||
| Additional Information | It seems that cmNinjaTargetGenerator::WriteCompileRule (Source/cmNinjaTargetGenerator.cxx:335) does not define ObjectDir in variables as Unix Generator does. | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-09-03 07:30 | raspy | New Issue | |||
| 2012-10-03 09:00 | Peter Kuemmel | Assigned To | => Peter Kuemmel | ||
| 2012-10-03 09:00 | Peter Kuemmel | Status | new => assigned | ||
| 2012-10-03 11:29 | Peter Kuemmel | Target Version | => CMake 2.8.10 | ||
| 2012-10-03 11:30 | Peter Kuemmel | Note Added: 0031165 | |||
| 2012-10-05 11:34 | Peter Kuemmel | Note Added: 0031183 | |||
| 2012-10-05 11:34 | Peter Kuemmel | Status | assigned => resolved | ||
| 2012-10-05 11:34 | Peter Kuemmel | Fixed in Version | => CMake 2.8.10 | ||
| 2012-10-05 11:34 | Peter Kuemmel | Resolution | open => fixed | ||
| 2013-03-04 08:38 | Robert Maynard | Note Added: 0032468 | |||
| 2013-03-04 08:38 | Robert Maynard | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||