View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004018CMakeModulespublic2006-11-02 23:082010-09-01 00:12
ReporterTristan Carel 
Assigned ToPhilip Lowman 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0004018: [MODULES] Support for Flex/Bison
DescriptionI 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.
TagsNo tags attached.
Attached Files? file icon FindBISON.cmake.rc1 [^] (7,549 bytes) 1969-12-31 19:00
? file icon FindFLEX.cmake.rc1 [^] (5,921 bytes) 1969-12-31 19:00
? file icon FindBISON.cmake [^] (7,557 bytes) 2008-10-28 07:08
? file icon FindFLEX.cmake [^] (5,946 bytes) 2008-10-28 07:08
patch file icon FindBISON.cmake.patch [^] (656 bytes) 2009-03-24 04:46 [Show Content]
zip file icon Find-Bison-Flex-2009-06-29.zip [^] (5,129 bytes) 2009-06-29 01:20

 Relationships

  Notes
(0005653)
Tristan Carel (reporter)
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 (manager)
2008-10-09 12:35

Are you interested in becoming the maintainer for these?

http://www.cmake.org/Wiki/CMake:Module_Maintainers [^]
(0013955)
justXi (reporter)
2008-10-28 07:07
edited on: 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 (developer)
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 (developer)
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 (reporter)
2009-06-29 01:24
edited on: 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 (developer)
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 (developer)
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

 Issue History
Date Modified Username Field Change
2008-10-09 12:35 Bill Hoffman Note Added: 0013786
2008-10-28 07:07 justXi Note Added: 0013955
2008-10-28 07:07 justXi Note Edited: 0013955
2008-10-28 07:08 justXi File Added: FindBISON.cmake
2008-10-28 07:08 justXi File Added: FindFLEX.cmake
2009-03-23 09:53 Marcel Loose Note Added: 0015758
2009-03-24 04:46 Marcel Loose File Added: FindBISON.cmake.patch
2009-03-24 04:49 Marcel Loose Note Added: 0015781
2009-06-29 01:20 Yang Yubo File Added: Find-Bison-Flex-2009-06-29.zip
2009-06-29 01:24 Yang Yubo Note Added: 0016772
2009-06-29 01:24 Yang Yubo Note Edited: 0016772
2009-07-18 01:16 Philip Lowman Note Added: 0016902
2009-07-18 01:16 Philip Lowman Assigned To Bill Hoffman => Philip Lowman
2009-08-13 00:12 Philip Lowman Note Added: 0017109
2009-08-13 00:12 Philip Lowman Status assigned => resolved
2009-08-13 00:12 Philip Lowman Resolution open => fixed
2010-09-01 00:12 Philip Lowman Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team