View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0015544 | CMake | CMake | public | 2015-04-29 16:24 | 2016-06-10 14:31 | ||||
Reporter | Stephen Kelly | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | |||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0015544: Policy to require cmake_minimum_required() before project() | ||||||||
Description | If a project() command is not written in used code, cmake will generate one. When invoked, it sets up the toolchain. The cmake_minimum_required() command must appear before the project() command, so that the AppleClang compiler id may be set correctly, according to CMP0025. Policy CMP0000 requires that the cmake_minimum_required() command must be used. That policy could be set to REQUIRED_ALWAYS in CMake 4.0. However, there would still be no enforcement of requiring the project() command to come after that. http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/9392 [^] Additionally, issuing the commands in the wrong order means that use of the CMAKE_MINIMUM_REQUIRED variable in files read via project() is not what is expected. http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/13094/focus=13120 [^] A policy may be added requiring that the project() command be present and come after cmake_minimum_required(), and generating the project() only in OLD behavior. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0042768) Kitware Robot (administrator) 2016-06-10 14:29 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2015-04-29 16:24 | Stephen Kelly | New Issue | |
2016-02-01 08:46 | Brad King | Relationship added | related to 0015943 |
2016-06-10 14:29 | Kitware Robot | Note Added: 0042768 | |
2016-06-10 14:29 | Kitware Robot | Status | new => resolved |
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |