[CMake] problems detecting a required version of a library
Scott Amort
jsamort at gmail.com
Wed Jun 28 17:17:34 EDT 2006
Hi Brad,
Brad King wrote:
> No, EXEC_PROGRAM and EXECUTE_PROCESS have different policies for
> capturing the output of a program. It looks like EXEC_PROGRAM
> automatically strips leading and trailing whitespace from the output,
> while EXECUTE_PROCESS gives you the real output of the program.
>
> Try putting this after EXECUTE_PROCESS:
>
> STRING(REGEX REPLACE "[\r\n]+$" "" ANTLR_CONFIG_LIBS
> "${ANTLR_CONFIG_LIBS}")
>
> -Brad
>
Thanks, that fixed it!
Best,
Scott
More information about the CMake
mailing list