The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=15934 ====================================================================== Reported By: Guy Harris Assigned To: ====================================================================== Project: CMake Issue ID: 15934 Category: CMake Reproducibility: N/A Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2016-01-26 02:58 EST Last Modified: 2016-01-26 02:58 EST ====================================================================== Summary: There's no way to test whether a given *linker* flag works Description: There are macros to test whether a given *compiler* flag works, such as CHECK_C_COMPILER_FLAG and CHECK_CXX_COMPILER_FLAG.
There is no macro to test whether a given *linker* flag works. Furthermore, there does not appear to be a way to do a CHECK_C_SOURCE_RUNS with a given *linker* flag, so there does not appear to be a way to *write* a macro to test whether a given linker flag works. Setting CMAKE_REQUIRED_FLAGS does *not* affect what flags are used with, for example, the Xcode generator; it works with the Unix makefile generator, but that's not sufficient to support multiple build systems. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2016-01-26 02:58 Guy Harris 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