MantisBT - CMake
View Issue Details
0013023CMakeModulespublic2012-03-07 01:322016-06-10 14:31
Christopher Sean Morrison 
Kitware Robot 
normalfeatureN/A
closedmoved 
CMake 2.8.4 
 
0013023: implementation of new CHECK_C_INLINE macro
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.
# 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.
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.
No tags attached.
? CheckCInline.cmake (3,776) 2012-03-07 01:32
https://public.kitware.com/Bug/file/4251/CheckCInline.cmake
Issue History
2012-03-07 01:32Christopher Sean MorrisonNew Issue
2012-03-07 01:32Christopher Sean MorrisonFile Added: CheckCInline.cmake
2012-04-11 18:16Rolf Eike BeerNote Added: 0029132
2012-04-11 18:16Rolf Eike BeerCategoryCMake => Modules
2012-08-11 21:35David ColeStatusnew => backlog
2012-08-11 21:35David ColeNote Added: 0030396
2016-06-10 14:28Kitware RobotNote Added: 0041998
2016-06-10 14:28Kitware RobotStatusbacklog => resolved
2016-06-10 14:28Kitware RobotResolutionopen => moved
2016-06-10 14:28Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0029132)
Rolf Eike Beer   
2012-04-11 18:16   
Please see instructions at http://www.cmake.org/Wiki/CMake:Module_Maintainers [^]
(0030396)
David Cole   
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   
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.