MantisBT - CMake
View Issue Details
0011688CMakeDocumentationpublic2011-01-12 07:362011-01-31 15:59
Marcel Loose 
Brad King 
normalminoralways
closedfixed 
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011688: Update/clarify documentation of TRY_COMPILE and CheckC(XX)SourceCompiles
The 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.
No tags attached.
Issue History
2011-01-12 07:36Marcel LooseNew Issue
2011-01-12 08:10Brad KingAssigned To => Brad King
2011-01-12 08:10Brad KingStatusnew => assigned
2011-01-12 08:17Brad KingNote Added: 0024614
2011-01-12 08:18Brad KingStatusassigned => closed
2011-01-12 08:18Brad KingResolutionopen => fixed
2011-01-14 03:45Marcel LooseNote Added: 0024671
2011-01-14 03:45Marcel LooseStatusclosed => feedback
2011-01-14 03:45Marcel LooseResolutionfixed => reopened
2011-01-14 08:09Brad KingNote Added: 0024672
2011-01-14 08:09Brad KingStatusfeedback => closed
2011-01-14 08:09Brad KingResolutionreopened => fixed
2011-01-31 15:59David ColeFixed in Version => CMake 2.8.4

Notes
(0024614)
Brad King   
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   
2011-01-14 03:45   
What about the documentation of CheckC(XX)SourceCompiles?
(0024672)
Brad King   
2011-01-14 08:09   
Oops. Done:

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