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                                    
======================================================================

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to