MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012458 | CMake | CMake | public | 2011-09-14 19:27 | 2012-04-02 10:10 |
Reporter | Stephen Kelly | ||||
Assigned To | David Cole | ||||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.5 | ||||
Target Version | CMake 2.8.7 | Fixed in Version | CMake 2.8.7 | ||
Summary | 0012458: cmake_minimum_required clears policies | ||||
Description | The attached project contains the line cmake_policy(SET CMP0017 NEW) but also warns about the policy not being set: $ cmake .. CMake Warning (dev) at /usr/share/cmake-2.8/Modules/FeatureSummary.cmake:112 (INCLUDE): File /usr/share/cmake-2.8/Modules/FeatureSummary.cmake includes /home/stephen/dev/src/playground/cmakebugs/CMakeParseArguments.cmake (found via CMAKE_MODULE_PATH) which shadows /usr/share/cmake-2.8/Modules/CMakeParseArguments.cmake. This may cause errors later on . Policy CMP0017 is not set: Prefer files from the CMake module directory when including from there. Run "cmake --help-policy CMP0017" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): sub1/CMakeLists.txt:4 (include) This warning is for project developers. Use -Wno-dev to suppress it. -- Configuring done -- Generating done -- Build files have been written to: /home/stephen/dev/src/playground/cmakebugs/build The warning does not appear if the cmake_minimum_required line in sub1/CMakeLists.txt is removed. The documentation of cmake_minimum_required notes that the policy is implicitly set to the cmake version specified. However I still found it surprising that it clears all existing policies. If this is intentional, it should probably be in the cmake_minimum_required documentation. | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://public.kitware.com/Bug/file/4052/policybug.tar.gz | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-09-14 19:27 | Stephen Kelly | New Issue | |||
2011-09-14 19:27 | Stephen Kelly | File Added: policybug.tar.gz | |||
2011-09-14 22:29 | David Cole | Assigned To | => David Cole | ||
2011-09-14 22:29 | David Cole | Status | new => assigned | ||
2011-09-14 22:31 | David Cole | Note Added: 0027425 | |||
2011-10-25 23:07 | David Cole | Note Added: 0027646 | |||
2011-10-27 00:05 | David Cole | Target Version | => CMake 2.8.7 | ||
2011-11-17 16:26 | David Cole | Note Added: 0027817 | |||
2011-11-17 16:26 | David Cole | Status | assigned => resolved | ||
2011-11-17 16:26 | David Cole | Fixed in Version | => CMake 2.8.7 | ||
2011-11-17 16:26 | David Cole | Resolution | open => no change required | ||
2012-04-02 10:10 | David Cole | Note Added: 0029043 | |||
2012-04-02 10:10 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|