[cmake-developers] check_cxx_source_compiles and include directories

Brad King brad.king at kitware.com
Tue Jul 28 10:55:16 EDT 2015


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-developers mailing list