MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0015359 | CMake | CMake | public | 2015-01-19 16:39 | 2016-06-10 14:31 | |||||
Reporter | Laurent Demailly | |||||||||
Assigned To | Kitware Robot | |||||||||
Priority | normal | Severity | feature | Reproducibility | always | |||||
Status | closed | Resolution | moved | |||||||
Platform | Apple Mac | OS | OS X | OS Version | 10.4.10 | |||||
Product Version | CMake 3.1 | |||||||||
Target Version | Fixed in Version | |||||||||
Summary | 0015359: __attribute__((weak)) support/detection (weak symbols) | |||||||||
Description | it would be great if some built in recipe would set some variable depending on whether the compiler/linker support __attribute__((weak)) this is done in autoconf the following way for instance: AC_CACHE_CHECK( [for weak symbol support], [folly_cv_prog_cc_weak_symbols], [AC_LINK_IFELSE( [AC_LANG_SOURCE[ extern "C" void configure_link_extern_weak_test() __attribute__((weak)); int main(int argc, char** argv) { return configure_link_extern_weak_test == nullptr; }]], [folly_cv_prog_cc_weak_symbols="yes"], [folly_cv_prog_cc_weak_symbols="no"])]) if test "$folly_cv_prog_cc_weak_symbols" = yes; then AC_DEFINE([HAVE_WEAK_SYMBOLS], [1], [Define to 1 if the linker supports weak symbols.]) fi ps: sent similar request (more of a question on how to do it pending built in support by cmake base) to the cmake@cmake.org mailing list - hope it's ok to have some amount of duplicate | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2015-01-19 16:39 | Laurent Demailly | New Issue | ||||||||
2015-01-19 16:43 | Brad King | Note Added: 0037749 | ||||||||
2015-01-19 18:30 | Laurent Demailly | Note Added: 0037752 | ||||||||
2015-01-20 08:31 | Brad King | Relationship added | related to 0015361 | |||||||
2016-06-10 14:29 | Kitware Robot | Note Added: 0042700 | ||||||||
2016-06-10 14:29 | Kitware Robot | Status | new => resolved | |||||||
2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | |||||||
2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | |||||||
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|