View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014309CMakeCMakepublic2013-07-24 16:202013-12-02 08:51
Reporterjmcm 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformanyOSanyOS Versionany
Product Version 
Target VersionCMake 2.8.12Fixed in VersionCMake 2.8.12 
Summary0014309: CHECK_C_COMPILER_FLAG does not behave like the manpage states
DescriptionThe manpage states that CHECK_C_COMPILER_FLAG accepts the same flags as CHECK_C_SOURCE_COMPILES, but then it overwrites CMAKE_REQUIRED_DEFINITIONS.

So either the manpage is wrong or the implementation is wrong. I found the bug because I relied on the documented behaviour - I want to have some fixed flags to be passed to all tests.

Workaround (as of now untested): pass the flag to test plus all the fixed flags to
CHECK_C_COMPILER_FLAG
Steps To ReproduceRead the source, Luke (Modules/CheckCCompilerFlag.cmake)
Additional InformationAt least versions 2.8.9 and git HEAD.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0033602)
Brad King (manager)
2013-07-25 08:27

Documentation updated:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3e79d656 [^]
(0034656)
Robert Maynard (manager)
2013-12-02 08:51

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-07-24 16:20 jmcm New Issue
2013-07-25 08:27 Brad King Note Added: 0033602
2013-07-25 08:27 Brad King Assigned To => Brad King
2013-07-25 08:27 Brad King Status new => resolved
2013-07-25 08:27 Brad King Resolution open => fixed
2013-07-25 08:27 Brad King Fixed in Version => CMake 2.8.12
2013-07-25 08:27 Brad King Target Version => CMake 2.8.12
2013-12-02 08:51 Robert Maynard Note Added: 0034656
2013-12-02 08:51 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team