head 1.1; branch 1.1.1; access; symbols netbsd-11-0-RC5:1.1.1.1 netbsd-11-0-RC4:1.1.1.1 netbsd-11-0-RC3:1.1.1.1 netbsd-11-0-RC2:1.1.1.1 netbsd-11-0-RC1:1.1.1.1 netbsd-11:1.1.1.1.0.4 netbsd-11-base:1.1.1.1 netbsd-10-1-RELEASE:1.1.1.1 netbsd-10-0-RELEASE:1.1.1.1 netbsd-10-0-RC6:1.1.1.1 netbsd-10-0-RC5:1.1.1.1 netbsd-10-0-RC4:1.1.1.1 netbsd-10-0-RC3:1.1.1.1 netbsd-10-0-RC2:1.1.1.1 netbsd-10-0-RC1:1.1.1.1 ctwm-4-1-0:1.1.1.1 netbsd-10:1.1.1.1.0.2 netbsd-10-base:1.1.1.1 ctwm-4-0-3:1.1.1.1 CTWM:1.1.1; locks; strict; comment @# @; 1.1 date 2021.04.11.08.36.54; author nia; state Exp; branches 1.1.1.1; next ; commitid PjWN65car4ihSQOC; 1.1.1.1 date 2021.04.11.08.36.54; author nia; state Exp; branches; next ; commitid PjWN65car4ihSQOC; desc @@ 1.1 log @Initial revision @ text @# # Setup flex to build lexer # # We don't really support any lex(1) other than flex. It's possible some # minor editing of lex.l could get you through that... # # If you DO have flex, we go ahead and use it to build the lexer. If you # don't, we check to see if there's a prebuilt one in the tree; one will # be shipped with tarballs for releases etc (but you'll still build your # own if you have flex). If neither of those hit, not much we can do but # bomb... # Override for forcing use of pregen'd source files if(NOT FORCE_PREGEN_FILES) find_package(FLEX) endif() if(FLEX_FOUND) FLEX_TARGET(ctwm_lexer lex.l ${CMAKE_CURRENT_BINARY_DIR}/lex.c) else() # See if we have a pre-built lex.c find_file(LEX_C lex.c PATHS ${GENSRCDIR} NO_DEFAULT_PATH) if(LEX_C) # Make the build process just copy it in message(STATUS "No flex found, using prebuilt lex.c") add_custom_command(OUTPUT lex.c DEPENDS ${LEX_C} COMMAND cp ${LEX_C} . COMMENT "Copying in prebuilt lex.c" ) else() # No flex, no pre-built lex.c message(FATAL_ERROR "Can't find flex, and no prebuilt files " "available.") endif(LEX_C) endif(FLEX_FOUND) @ 1.1.1.1 log @ctwm-4.0.3 @ text @@