View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013829 | CMake | CMake | public | 2013-01-03 13:26 | 2013-06-03 09:05 | ||||
Reporter | Alessio M. | ||||||||
Assigned To | Stephen Kelly | ||||||||
Priority | urgent | Severity | block | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | win32 | OS | Windows 7 64 bit | OS Version | |||||
Product Version | CMake 2.8.10.2 | ||||||||
Target Version | Fixed in Version | CMake 2.8.11 | |||||||
Summary | 0013829: Internal error in add_custom_target crashes with $<TARGET_PROPERTY:tgt,prop> | ||||||||
Description | The following CMakeLists.txt crashes CMake during generation cmake_minimum_required(VERSION 2.8.10) project(TestBug) add_executable(test test.cpp) add_custom_target(test2 "some_bogus_custom_tool" $<TARGET_PROPERTY:test,INCLUDE_DIRECTORIES> $<TARGET_PROPERTY:test,COMPILE_DEFINITIONS> WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") ====== CMake output follows ======= Configuring done CMake Internal Error (please report a bug): Missing cmGeneratorTarget instance! CMake Internal Error (please report a bug): Missing cmGeneratorTarget instance! Generating done | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | ![]() | ||||||||
Relationships | |
Relationships |
Notes | |
(0031966) Alessio M. (reporter) 2013-01-03 14:08 |
Probably related: I also found the following sequence completely crashes cmake-gui.exe. add_custom_target(${_name}_cppcheck) set_target_properties(${_name}_cppcheck PROPERTIES COMPILE_DEFINITIONS $<TARGET_PROPERTY:${_name},COMPILE_DEFINITIONS>) add_custom_command(TARGET ${_name}_cppcheck PRE_BUILD COMMAND "${CPPCHECK_EXECUTABLE}" $<TARGET_PROPERTY:COMPILE_DEFINITIONS> ${CPPCHECK_TEMPLATE_ARG} ${_cppcheck_args} ${_files} WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}") Basically I'm trying to create cppcheck targets for my cxx targets. This requires using the COMPILE_DEFINITIONS and INCLUDE_DIRECTORIES properties of the original CXX target in the construction of cppcheck command lines. |
(0031968) Stephen Kelly (developer) 2013-01-03 15:07 |
Thanks for reporting. The first issue you raised was fixed as a side-effect of another commit. I added a test for the issue: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=08bd86b85fb657a7e70b4147ebe0e14d9d825c22 [^] The second issue you raise is separate, and a bug in the code. I've fixed it here: http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e767ffcda58ab73cf2c4394202eec7ae1f6035b5 [^] Unfortunately, the error message does not appear to the user. The error reporting code is correct, but cmTargetTraceDependencies::CheckCustomCommand calls cmCompiledGeneratorExpression::Evaluate with quiet=true. Brad, any idea why it does that? Thanks, Steve. |
(0033184) Robert Maynard (manager) 2013-06-03 09:05 |
Closing resolved issues that have not been updated in more than 4 months. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2013-01-03 13:26 | Alessio M. | New Issue | |
2013-01-03 13:26 | Alessio M. | File Added: cmake-generator-expression-bug.7z | |
2013-01-03 13:59 | Brad King | Assigned To | => Stephen Kelly |
2013-01-03 13:59 | Brad King | Status | new => assigned |
2013-01-03 14:08 | Alessio M. | Note Added: 0031966 | |
2013-01-03 15:07 | Stephen Kelly | Note Added: 0031968 | |
2013-01-09 12:53 | Stephen Kelly | Status | assigned => resolved |
2013-01-09 12:53 | Stephen Kelly | Fixed in Version | => CMake 2.8.11 |
2013-01-09 12:53 | Stephen Kelly | Resolution | open => fixed |
2013-06-03 09:05 | Robert Maynard | Note Added: 0033184 | |
2013-06-03 09:05 | Robert Maynard | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |