View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0013023 | CMake | Modules | public | 2012-03-07 01:32 | 2016-06-10 14:31 | ||||
Reporter | Christopher Sean Morrison | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | feature | Reproducibility | N/A | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 2.8.4 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0013023: implementation of new CHECK_C_INLINE macro | ||||||||
Description | I've implemented a CHECK_C_INLINE macro that detects what keyword, if any, is used for inlining C functions. The check is very similar to autoconf's AC_C_INLINE portability macro, testing various methods to find one that works. The macro takes a variable from the caller and utilizes caching so tests are only run when necessary. | ||||||||
Steps To Reproduce | # using the new macro looks like this: CHECK_C_INLINE(C_INLINE) if(NOT C_INLINE STREQUAL "inline") add_definitions("-Dinline=${C_INLINE}") endif(NOT C_INLINE STREQUAL "inline") That has the convenient behavior of renaming instances of "inline" to an alternate available keyword or to nothing/empty if none are supported. | ||||||||
Additional Information | This is a work-in-progress, but I'll be happy to maintain the macro if need be. A quick search indicates such a macro would be of general use suitable for inclusion as a new built-in macro. Constructive feedback is always welcome, of course. | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | CheckCInline.cmake [^] (3,776 bytes) 2012-03-07 01:32 | ||||||||
Relationships | |
Relationships |
Notes | |
(0029132) Rolf Eike Beer (developer) 2012-04-11 18:16 |
Please see instructions at http://www.cmake.org/Wiki/CMake:Module_Maintainers [^] |
(0030396) David Cole (manager) 2012-08-11 21:35 |
Sending old, never assigned issues to the backlog. (The age of the bug, plus the fact that it's never been assigned to anyone means that nobody is actively working on it...) If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^] It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing. |
(0041998) Kitware Robot (administrator) 2016-06-10 14:28 |
Resolving issue as `moved`. This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2012-03-07 01:32 | Christopher Sean Morrison | New Issue | |
2012-03-07 01:32 | Christopher Sean Morrison | File Added: CheckCInline.cmake | |
2012-04-11 18:16 | Rolf Eike Beer | Note Added: 0029132 | |
2012-04-11 18:16 | Rolf Eike Beer | Category | CMake => Modules |
2012-08-11 21:35 | David Cole | Status | new => backlog |
2012-08-11 21:35 | David Cole | Note Added: 0030396 | |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041998 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |