MantisBT - CMake
View Issue Details
0004018CMakeModulespublic2006-11-02 23:082010-09-01 00:12
Tristan Carel 
Philip Lowman 
lowfeaturealways
closedfixed 
 
 
0004018: [MODULES] Support for Flex/Bison
I haven't found any support to these great tools in the cvs.

You can find in attachment modules to support flex/bison for my needs.

I think the documentation is too big and can be easily better and more concise.

If you're interested to put these files on the cvs, please tell me my uglynesses.

Then maybe I should add a wiki page with precise uses cases.

I've tested it under Cygwin, VC, Linux and Darwin, but not with a lot of different version for flex and bison.
No tags attached.
? FindBISON.cmake.rc1 (7,549) 1969-12-31 19:00
https://public.kitware.com/Bug/file/732/FindBISON.cmake.rc1
? FindFLEX.cmake.rc1 (5,921) 1969-12-31 19:00
https://public.kitware.com/Bug/file/733/FindFLEX.cmake.rc1
? FindBISON.cmake (7,557) 2008-10-28 07:08
https://public.kitware.com/Bug/file/1805/FindBISON.cmake
? FindFLEX.cmake (5,946) 2008-10-28 07:08
https://public.kitware.com/Bug/file/1806/FindFLEX.cmake
patch FindBISON.cmake.patch (656) 2009-03-24 04:46
https://public.kitware.com/Bug/file/2139/FindBISON.cmake.patch
zip Find-Bison-Flex-2009-06-29.zip (5,129) 2009-06-29 01:20
https://public.kitware.com/Bug/file/2345/Find-Bison-Flex-2009-06-29.zip
Issue History
2008-10-09 12:35Bill HoffmanNote Added: 0013786
2008-10-28 07:07justXiNote Added: 0013955
2008-10-28 07:07justXiNote Edited: 0013955
2008-10-28 07:08justXiFile Added: FindBISON.cmake
2008-10-28 07:08justXiFile Added: FindFLEX.cmake
2009-03-23 09:53Marcel LooseNote Added: 0015758
2009-03-24 04:46Marcel LooseFile Added: FindBISON.cmake.patch
2009-03-24 04:49Marcel LooseNote Added: 0015781
2009-06-29 01:20Yang YuboFile Added: Find-Bison-Flex-2009-06-29.zip
2009-06-29 01:24Yang YuboNote Added: 0016772
2009-06-29 01:24Yang YuboNote Edited: 0016772
2009-07-18 01:16Philip LowmanNote Added: 0016902
2009-07-18 01:16Philip LowmanAssigned ToBill Hoffman => Philip Lowman
2009-08-13 00:12Philip LowmanNote Added: 0017109
2009-08-13 00:12Philip LowmanStatusassigned => resolved
2009-08-13 00:12Philip LowmanResolutionopen => fixed
2010-09-01 00:12Philip LowmanStatusresolved => closed

Notes
(0005653)
Tristan Carel   
2006-11-02 23:10   
I haven't found any support to these great tools in the cvs.

You can find in attachment modules to support flex/bison for my needs.

I think the documentation is too big and can be easily better and more concise.

If you're interested to put these files on the cvs, please tell me my uglynesses.

Then maybe I should add a wiki page with precise uses cases.

I tested them on linux, darwin, cygwin and vc but not with lot's of different versions for bison and flex.
(0013786)
Bill Hoffman   
2008-10-09 12:35   
Are you interested in becoming the maintainer for these?

http://www.cmake.org/Wiki/CMake:Module_Maintainers [^]
(0013955)
justXi   
2008-10-28 07:07   
Hi,

I tried to use these modules within my probject and had to make a few changes:

- To use the custom command in a subdirectory I replaced "WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}" by "WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}" (in both BISON and FLEX module)

- Within the macro "ADD_FLEX_BISON_DEPENDENCY" I replaced "_TARGET" by "_OUTPUTS" or "_OUTPUT_HEADER, to get it to work.

I will add my new versions.

(0015758)
Marcel Loose   
2009-03-23 09:53   
Hi,

I found an issue with the way that FindBison derives the name of the generated header file. Bison "simply" substitutes *every* character 'c' in the filename's extension with 'h'. So, for example, MyParser.yy will produce the files MyParser.cc and MyParser.hh.

FindBison.cmake, however, only substitutes the first character 'c' with 'h', resulting in MyParser.hc.
(0015781)
Marcel Loose   
2009-03-24 04:49   
Hi justXi, and others.

I just uploaded a patch for the 2008-10-28 07:08 version of FindBISON.cmake FindBISON.cmake that fixes the issue I mentioned yesterday.
(0016772)
Yang Yubo   
2009-06-29 01:24   
Just upload a zip archive that includes 2008-10-28 07:08 version of FindFLEX.cmake and FindBISON.cmake with gmloose's patch.

These two modules work perfect, really hope can be shipped with CMake by default.

(0016902)
Philip Lowman   
2009-07-18 01:16   
Unless anyone else is interested in doing this (any takers?) I will check-in and volunteer to maintain the latest version of the flex and bison modules.
(0017109)
Philip Lowman   
2009-08-13 00:12   
I tested the modules (work great BTW!), added FindPackageHandleStandardArgs, cleaned up some indentation issues, and improved the examples slightly.

I think these will make a nice addition to CMake 2.8. Thank you for sending them along.

Committer: Philip Lowman <philip@yhbt.com>
/cvsroot/CMake/CMake/Modules/FindFLEX.cmake,v <-- FindFLEX.cmake
initial revision: 1.1
/cvsroot/CMake/CMake/Modules/FindBISON.cmake,v <-- FindBISON.cmake
initial revision: 1.1