diff options
author | Marcin Ślusarz <marcin.slusarz@gmail.com> | 2019-05-26 22:30:49 +0200 |
---|---|---|
committer | Marcin Ślusarz <marcin.slusarz@gmail.com> | 2019-05-26 22:34:06 +0200 |
commit | a7754448f66acc50427a04b1e5b699a041ae295a (patch) | |
tree | 8e5810d63f68bdd482e7701bbc53b1e1f5300c81 | |
parent | 63f149f5989ea4adfa522cec63a954b5059c223c (diff) | |
download | cmake-a7754448f66acc50427a04b1e5b699a041ae295a.tar.gz |
FindFLEX: fix example
Binaries using flex must link with the detected library.
-rw-r--r-- | Modules/FindFLEX.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindFLEX.cmake b/Modules/FindFLEX.cmake index 09d57d20d6..d22b7ec67a 100644 --- a/Modules/FindFLEX.cmake +++ b/Modules/FindFLEX.cmake @@ -95,6 +95,7 @@ respectively ``FLEX_TARGET`` and ``BISON_TARGET`` macros. ${BISON_MyParser_OUTPUTS} ${FLEX_MyScanner_OUTPUTS} ) + target_link_libraries(Foo ${FLEX_LIBRARIES}) ==================================================================== #]=======================================================================] |