MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0015995 | CMake | CMake | public | 2016-03-01 07:42 | 2016-06-10 14:31 |
Reporter | stw_sesa | ||||
Assigned To | geoffviola | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | moved | ||
Platform | x86_64 | OS | Windows | OS Version | 7 |
Product Version | CMake 3.4.3 | ||||
Target Version | Fixed in Version | ||||
Summary | 0015995: GHS Multi Generator: add_custom_command / add_custom_target does not work | ||||
Description | The GHS Multi Generator does not handle custom commands added via add_custom_command() correctly / at all. The custom commands are not used in the generated project files and never executed. Instead the default compiler seems to be called, which obviously fails. | ||||
Steps To Reproduce | Create a simple CMakeLists.txt like this: # CMakeLists.txt cmake_minimum_required (VERSION 2.8) add_custom_target (a_txt ALL DEPENDS a.txt) add_custom_command (OUTPUT a.txt COMMAND type b.txt > a.txt DEPENDS b.txt) add_custom_command (OUTPUT b.txt COMMAND type c.txt > b.txt DEPENDS c.txt) file(WRITE ${CMAKE_BINARY_DIR}/c.txt "hello world" ) ----------------------------------- Generate the GHC Project using CMake and try to build it. Output from the build: Building D:\cmake-ghc\build\custom_target_test_ghc\default.gpj Output from Linking a_txt.gpj: ccintarm: Error: output file 'a_txt' is a directory. Error: build failed Build failed (Tue Mar 01 13:32:50 2016) | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2016-03-01 07:42 | stw_sesa | New Issue | |||
2016-04-17 17:05 | geoffviola | Assigned To | => geoffviola | ||
2016-04-17 17:05 | geoffviola | Status | new => assigned | ||
2016-04-17 19:03 | geoffviola | Note Added: 0040876 | |||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042949 | |||
2016-06-10 14:29 | Kitware Robot | Status | assigned => resolved | ||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|