MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0004249 | CMake | CMake | public | 2006-12-30 00:06 | 2015-07-08 08:57 |
Reporter | Todd Rovito | ||||
Assigned To | Bill Hoffman | ||||
Priority | low | Severity | feature | Reproducibility | always |
Status | closed | Resolution | not fixable | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Summary | 0004249: Generate a warning when a undefined Cmake variable is used | ||||
Description | If a CMakeLists.txt file contains the following: If (UNIX) set(VARIABLE_NAME SomeFile.h SomeFile.cxx) add_executable(ProgramName SomeFileMain.cxx ${VARIABLE_NAME_UNDEFINED}) Endif (UNIX) # end of CMakeLists.txt file Cmake will not complain about VARIABLE_NAME_UNDEFINED being undefined it still tries to build the project. If possible I would like cmake to print a warning that it is using an undefined variable. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | undefined_variable_warnings.diff (21,243) 2008-03-01 14:34 https://public.kitware.com/Bug/file/1333/undefined_variable_warnings.diff CMakeLists.txt (429) 2008-03-01 14:35 https://public.kitware.com/Bug/file/1334/CMakeLists.txt | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-03-01 14:32 | Philip Lowman | Note Added: 0010678 | |||
2008-03-01 14:34 | Philip Lowman | File Added: undefined_variable_warnings.diff | |||
2008-03-01 14:35 | Philip Lowman | File Added: CMakeLists.txt | |||
2015-02-26 14:08 | Stephen Kelly | Note Added: 0038083 | |||
2015-02-26 14:08 | Stephen Kelly | Status | assigned => resolved | ||
2015-02-26 14:08 | Stephen Kelly | Resolution | open => not fixable | ||
2015-07-08 08:57 | Robert Maynard | Note Added: 0039072 | |||
2015-07-08 08:57 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|