Hi,

I would start by playing with

Modules/CMake*CompilerId*

and if needed

Modules/CMakeDetermine*Compiler.cmake

in master branch of the CMake git repo. Presumably part of the problem is
that the check for __clang__ is very early. You would need to take care
that the older XL compilers still work in the intended way. I may be able
to help with testing some things - just not sure I have access to a Power8
with recent XL.

Cheers,

Mark

On Mon, Jan 26, 2015 at 4:17 PM, Jamil Appa <jamil.a...@zenotech.com> wrote:

> Hi
>
>     I am trying to use the IBM xl compilers with cmake 3.1 on a little
> endian Power 8
>
>     The find_library function fails as the architecture is not
> recognised.  If I manually set the architecture
> using -DCMAKE_LIBRARY_ARCHITECTURE=powerpc64le-linux-gnu cmake works
> correctly.
>
>      The IBM xl compiler is identified as Clang 3.4.2 as it uses the clang
> front end.
>
>     I happy to provide a patch if this has not been fixed yet but I will
> need some guidance on which files need fixing.
>
>   Thanks
>
>  Jamil
>
> --
> Jamil Appa | Co-Founder and Director | Zenotech
> +447747606788 | [image: View Jamil Appa's LinkedIn profile]
> <http://uk.linkedin.com/pub/jamil-appa/1/165/120>
> jamil.a...@zenotech.com[image: Zenotech] <http://www.zenotech.com>Zenotech
> Ltd | Bristol & Bath Science Park | Emmersons Green | Bristol | BS16 7FR
> ------------------------------
> Registered Address: 1 Larkfield Grove | Chepstow | Monmouthshire | NP16
> 5UF | UK
> Registered in England & Wales No: 7926926 VAT No: 128198591
>
> --
>
> 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/mailman/listinfo/cmake
>
-- 

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/mailman/listinfo/cmake

Reply via email to