Re: [cmake-developers] check_cxx_source_compiles and include directories

2015-07-28 Thread Brad King
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

Re: [cmake-developers] check_cxx_source_compiles and include directories

2015-07-28 Thread Roman Wüger
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.k...@kitware.com: On 07/27/2015 03:26 PM, Roman Wüger wrote: SubProj1 and

Re: [cmake-developers] check_cxx_source_compiles and include directories

2015-07-28 Thread Brad King
On 07/28/2015 12:23 PM, Roman Wüger wrote: 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. Is that using the Xcode Command Line Tools or the /usr/bin/c++ stub that uses the /Applications/Xcode.app/.../bin/clang++ compiler underneath?

Re: [cmake-developers] check_cxx_source_compiles and include directories

2015-07-28 Thread Roman Wüger
-Ursprüngliche Nachricht- Von: Brad King [mailto:brad.k...@kitware.com] Gesendet: Dienstag, 28. Juli 2015 18:50 An: Roman Wüger roman.wue...@gmx.at Cc: CMake MailingList cm...@cmake.org; CMake Developer MailingList cmake-developers@cmake.org Betreff: Re: [cmake-developers] check_cxx_source_compiles

Re: [cmake-developers] check_cxx_source_compiles and include directories

2015-07-27 Thread Roman Wüger
MailingList cmake-developers@cmake.org Betreff: [cmake-developers] check_cxx_source_compiles and include directories Hello, I've a small code example to test if the mutex header file exists (with check_cxx_source_compiles), which sets my variable successfully to TRUE. When I compile