[CMake] [cmake-developers] check_cxx_source_compiles and include directories

Roman Wüger roman.wueger at gmx.at
Tue Jul 28 12:23:12 EDT 2015


Hi Brad,

thanks for your investigation.
I've tried it on Mac OS 10.10.4 with clang 6.1.0.6020053 from XCode 6 using "Unix Makefiles" as the generator.

Best Regards
Roman

> Am 28.07.2015 um 16:55 schrieb Brad King <brad.king at kitware.com>:
> 
>> On 07/27/2015 03:26 PM, Roman Wüger wrote:
>> SubProj1 and SubProj2 does not find <mutex>, but
>> check_cxx_source_compiles succeeds.
>> 
>> Did I miss configure something here?
> 
> The posted example works for me on Linux with g++ 4.9.3.
> The check succeeds and an executable I create in SubProj1
> can #include <mutex>.  I have "/usr/include/c++/4.9.3/mutex"
> right next to all the other C++ headers.
> 
> -Brad
> 


More information about the CMake mailing list