View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011249CMakeModulespublic2010-09-19 23:442010-11-09 22:57
ReporterPhilip Lowman 
Assigned ToPhilip Lowman 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0011249: FindFLEX.cmake: Sends a CMake fatal error if flex execution fails or doesn't support --version flag
DescriptionAs reported by Bill Hoffman:

In FindFLEX.cmake, you have this:
 EXECUTE_PROCESS(COMMAND ${FLEX_EXECUTABLE} --version
   OUTPUT_VARIABLE FLEX_version_output
   ERROR_VARIABLE FLEX_version_error
   RESULT_VARIABLE FLEX_version_result
   OUTPUT_STRIP_TRAILING_WHITESPACE)
 IF(NOT ${FLEX_version_result} EQUAL 0)
   MESSAGE(SEND_ERROR "Command \"${FLEX_EXECUTABLE} --version\" failed with output:\n${FLEX_version_error}")
 ELSE()

So, if the flex that is found does not support the --version flag, or fails to run, it is always a fatal error. It should only be a fatal error if the find_package(FLEX REQUIRED) is given.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
There are no notes attached to this issue.

 Issue History
Date Modified Username Field Change
2010-09-19 23:44 Philip Lowman New Issue
2010-09-19 23:45 Philip Lowman Assigned To => Philip Lowman
2010-09-19 23:45 Philip Lowman Status new => assigned
2010-09-19 23:45 Philip Lowman Target Version => CMake 2.8.3
2010-09-20 08:09 Philip Lowman Status assigned => resolved
2010-09-20 08:09 Philip Lowman Fixed in Version => CMake 2.8.3
2010-09-20 08:09 Philip Lowman Resolution open => fixed
2010-11-09 22:57 Philip Lowman Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team