The following issue has been SUBMITTED. ====================================================================== http://www.cmake.org/Bug/view.php?id=15591 ====================================================================== Reported By: Chris Bieneman Assigned To: ====================================================================== Project: CMake Issue ID: 15591 Category: CMake Reproducibility: N/A Severity: feature Priority: normal Status: new ====================================================================== Date Submitted: 2015-05-28 10:56 EDT Last Modified: 2015-05-28 10:56 EDT ====================================================================== Summary: CMAKE_OSX_SYSROOT and CMAKE_OSX_ARCHITECTURES variables are actually clang-specific not osx-specific Description: The CMAKE_OSX_SYSROOT and CMAKE_OSX_ARCHITECTURES flags are currently the best supported way to set the -isysroot and -arch flags used by clang for cross-compiling, but they only function fully if you are on Darwin. Clang supports these flags on all platforms, so they should really be CMAKE_CLANG_SYSROOT and CMAKE_CLANG_ARCHITECTURES.
Having platform-agnostic CMAKE_CLANG_ARCHITECTURES and CMAKE_CLANG_SYSROOT flags would significantly improve cross-compiling support with clang. It would also greatly help the LLVM project in our efforts to replace our autoconf build system with CMake. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2015-05-28 10:56 Chris Bieneman 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/mailman/listinfo/cmake-developers