View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0012040 | CMake | CMake | public | 2011-04-04 03:46 | 2011-05-07 03:21 | ||||
Reporter | Yuchen Deng | ||||||||
Assigned To | Alex Neundorf | ||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||
Status | closed | Resolution | won't fix | ||||||
Platform | Win32 | OS | Windows 7 | OS Version | SP1 | ||||
Product Version | CMake 2.8.4 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0012040: Remove extra line breaks in Eclipse CDT | ||||||||
Description | Hi, CMake Term! I found a issue, in Eclipse CDT, If a make target use the command like this: cmake -E chdir ${ProjDirPath}/Build cmake -DCMAKE_BUILD_TYPE=Release .. It will output extra line in log window. Like the picture. Here is the solution: FILE: cmSystemTools.cxx PATCH: bool cmSystemTools::RunSingleCommand(std::vector<cmStdString>const& command, std::string* output , int* retVal , const char* dir , bool verbose , double timeout ) { ... for(int i=0; i < length; ++i) { if(data[i] == '\0' || data[i] == '\r') // PATCH IN HERE { data[i] = ' '; } } } | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | 1.png [^] (50,555 bytes) 2011-04-04 03:46
2.png [^] (22,323 bytes) 2011-04-04 19:52 | ||||||||
Relationships | |
Relationships |
Notes | |
(0026086) Alex Neundorf (developer) 2011-04-04 16:12 |
Are you using the Eclipse project generator in cmake ? How does such a custom target look in your CMakeLists.txt, i.e. can you please post some code snippet from your CMakeLists.txt here ? I.e. I don't understand why you need to call cmake in a custom command. Alex |
(0026089) Yuchen Deng (reporter) 2011-04-04 19:51 |
OK, I am using CDT 8.0, Here is a demo CMakeLists.txt content: ---- project(MBR) cmake_minimum_required(VERSION 2.8) aux_source_directory(. SRC_LIST) add_executable(${PROJECT_NAME} ${SRC_LIST}) ---- Then, I am using 'Make Target' to control everything. e.g. ---- Build = cmake -E chdir ${ProjDirPath}/Build nmake CMake_Debug = cmake -E chdir ${ProjDirPath}/Build cmake -DCMAKE_BUILD_TYPE=Debug .. ---- When using 'cmake -E chdir ${ProjDirPath}/Build', I can using 'Out-of-source' build in Eclipse CDT. But, If don't use chdir, It's seems no way to implemention 'Out-of-source' build. |
(0026091) Yuchen Deng (reporter) 2011-04-04 19:59 edited on: 2011-04-04 19:59 |
Are you using the Eclipse project generator in cmake ? --------- No, I am using MSVC with eclipse, then CMake is a powerful build system. I can generator NMake Makefile or VS Project like below 'Make Target' command. CMake_MinSizeRel = cmake -E chdir ${ProjDirPath}/Build cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=MinSizeRel .. |
(0026452) Alex Neundorf (developer) 2011-05-06 17:08 |
There should be a "Eclipse CDT4 - NMake Makefiles" available. If you run this from a shell where the MSVC environment has been set, it should work. Did you try that ? Alex |
(0026456) Yuchen Deng (reporter) 2011-05-06 23:06 |
No, I don't like "Eclipse CDT4 - NMake Makefiles" . I am only like "NMake Makefiles", It's more liberal. And I can using CDT 8.0 feature. |
(0026457) Alex Neundorf (developer) 2011-05-07 03:21 |
Ok, then there is nothing to do about this in the Eclipse generator, and I changing code somewhere else in cmake only to improve the log window output in Eclipse (while you are not using what is intended to be used for Eclipse) is nothing I will do. Alex |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-04-04 03:46 | Yuchen Deng | New Issue | |
2011-04-04 03:46 | Yuchen Deng | File Added: 1.png | |
2011-04-04 11:40 | Brad King | Assigned To | => Alex Neundorf |
2011-04-04 11:40 | Brad King | Status | new => assigned |
2011-04-04 16:12 | Alex Neundorf | Note Added: 0026086 | |
2011-04-04 19:51 | Yuchen Deng | Note Added: 0026089 | |
2011-04-04 19:52 | Yuchen Deng | File Added: 2.png | |
2011-04-04 19:59 | Yuchen Deng | Note Added: 0026091 | |
2011-04-04 19:59 | Yuchen Deng | Note Edited: 0026091 | |
2011-05-06 17:08 | Alex Neundorf | Note Added: 0026452 | |
2011-05-06 23:06 | Yuchen Deng | Note Added: 0026456 | |
2011-05-07 03:21 | Alex Neundorf | Note Added: 0026457 | |
2011-05-07 03:21 | Alex Neundorf | Status | assigned => closed |
2011-05-07 03:21 | Alex Neundorf | Resolution | open => won't fix |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |