MantisBT - CMake
View Issue Details
0014954CMakeCMakepublic2014-06-04 15:572016-06-10 14:31
Georg Sauthoff 
Kitware Robot 
normalfeaturealways
closedmoved 
 
 
0014954: feature request: add FindRAGEL parser generator module
CMake already comes with support for parser-generators/compiler-compilers like Flex and Bison (i.e. FindFLEX/FindBison).

But currently, it does not support the Ragel state machine compiler/parser-generator (http://www.complang.org/ragel/ [^] ).

A google search shows that there is a need for such support - there are various projects using Ragel - and some projects which build with cmake reinvent the wheel, i.e. they ship custom cmake targets for ragel compilation.

I've created a FindRAGEL module for my needs - it is based on the FindBISON module distributed with cmake:

https://github.com/gsauthof/cmake-ragel [^]

Besides the small examples included in the above repository you can also see how the FindRAGEL module is used in another project - for multiple ragel files:

https://github.com/gsauthof/imapdl [^]

Please feel free to integrate the FindRAGEL module (or something to the same effect) into the cmake distribution.
No tags attached.
Issue History
2014-06-04 15:57Georg SauthoffNew Issue
2014-06-04 16:07Brad KingNote Added: 0036117
2016-06-10 14:29Kitware RobotNote Added: 0042557
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036117)
Brad King   
2014-06-04 16:07   
Thanks for offering this module.

Please read CONTRIBUTING.rst at the top of the source tree:

 http://cmake.org/gitweb?p=cmake.git;a=blob;f=CONTRIBUTING.rst;hb=v3.0.0-rc6 [^]

It explains the preferred entry path is to send patches to the mailing list.

Please also read the cmake-packages(7) manual:

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-packages.7.html [^]

and the cmake-developer(7) manual section on writing modules:

 http://www.cmake.org/cmake/help/v3.0/manual/cmake-developer.7.html#modules [^]

A few quick comments from glancing at the module:

- The documentation comment will need to be converted to the reStructuredText-based documentation system used in CMake 3.0 and above.
- Generally I prefer not to maintain APIs in find modules. The bison_target macro is a legacy API. Projects could call add_custom_command themselves. We can always add an API later if necessary but we can never remove one easily.

Please resolve these for the version to be posted to the list or ask on the list if you need help. Thanks!
(0042557)
Kitware Robot   
2016-06-10 14:29   
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.