View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011688CMakeDocumentationpublic2011-01-12 07:362011-01-31 15:59
ReporterMarcel Loose 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.3 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011688: Update/clarify documentation of TRY_COMPILE and CheckC(XX)SourceCompiles
DescriptionThe names of the macros TRY_COMPILE and CheckC(XX)SourceCompiles suggest that only compilation is performed. However, under the hood a CMakeLists.txt file is generated containing an ADD_EXECUTABLE() statement. Hence, linking is also performed. This should be documented more clearly.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0024614)
Brad King (manager)
2011-01-12 08:17

The documentation already provides a sample CMakeLists.txt file that the command generates, and it includes add_executable.

This is a common misconception (due to the name of the command) so it doesn't hurt to state the behavior even more explicitly:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4da2a568 [^]
(0024671)
Marcel Loose (developer)
2011-01-14 03:45

What about the documentation of CheckC(XX)SourceCompiles?
(0024672)
Brad King (manager)
2011-01-14 08:09

Oops. Done:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=cabb6cd0 [^]

 Issue History
Date Modified Username Field Change
2011-01-12 07:36 Marcel Loose New Issue
2011-01-12 08:10 Brad King Assigned To => Brad King
2011-01-12 08:10 Brad King Status new => assigned
2011-01-12 08:17 Brad King Note Added: 0024614
2011-01-12 08:18 Brad King Status assigned => closed
2011-01-12 08:18 Brad King Resolution open => fixed
2011-01-14 03:45 Marcel Loose Note Added: 0024671
2011-01-14 03:45 Marcel Loose Status closed => feedback
2011-01-14 03:45 Marcel Loose Resolution fixed => reopened
2011-01-14 08:09 Brad King Note Added: 0024672
2011-01-14 08:09 Brad King Status feedback => closed
2011-01-14 08:09 Brad King Resolution reopened => fixed
2011-01-31 15:59 David Cole Fixed in Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team