[cmake-developers] [CMake 0015934]: There's no way to test whether a given *linker* flag works
Mantis Bug Tracker
mantis at public.kitware.com
Tue Jan 26 02:58:12 EST 2016
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
======================================================================
More information about the cmake-developers
mailing list