[cmake-developers] [CMake 0014905]: FindThreads doesn't clearly express it requires C language enabled.

Mantis Bug Tracker mantis at public.kitware.com
Mon May 5 13:57:50 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=14905 
====================================================================== 
Reported By:                Robert Maynard
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14905
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-05-05 18:57 WAT
Last Modified:              2014-05-05 18:57 WAT
====================================================================== 
Summary:                    FindThreads doesn't clearly express it requires C
language enabled.
Description: 
The FindThread documentation doesn't express that is uses the try_run command
and requires that C support has been enabled, when pthread isn't in a system
include ( osx  xcode 5+, cross compilation ).

I think the documentation should be extended to state that FindThread requires a
project to have enabled the C language. It should also document how to properly
setup FindThread for cross compilation.

Ee should also consider falling back to the C++ compiler for the try_run if the
C compiler doesn't exist, and we don't have a toolchain.

Steps to Reproduce: 
run the minimal project at:
https://github.com/robertmaynard/Sandbox/tree/master/FindThreadCXX
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-05-05 18:57 Robert Maynard New Issue                                    
======================================================================



More information about the cmake-developers mailing list