diff options
author | Brad King <brad.king@kitware.com> | 2007-10-03 19:23:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-10-03 19:23:54 (GMT) |
commit | 00c33e7e8f0ec3e8be1a1f06eea86e5d00b7514f (patch) | |
tree | eda8d1821d805992f0087ea19f208316db405425 | |
parent | 87bf9f14903d3042924eb278ebbf628af51278c1 (diff) | |
download | CMake-00c33e7e8f0ec3e8be1a1f06eea86e5d00b7514f.zip CMake-00c33e7e8f0ec3e8be1a1f06eea86e5d00b7514f.tar.gz CMake-00c33e7e8f0ec3e8be1a1f06eea86e5d00b7514f.tar.bz2 |
ENH: Updated CMAKE_REGENERATE_YACCLEX option to support cmDependsFortran. Fixed to work with spaces in path.
-rw-r--r-- | Source/CMakeLists.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index a26230e..55e4115 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -25,7 +25,7 @@ OPTION(CMAKE_REGENERATE_YACCLEX "Regenerate YACC and LEXX files" OFF) MARK_AS_ADVANCED(CMAKE_REGENERATE_YACCLEX) IF(CMAKE_REGENERATE_YACCLEX) - SET(parsersLexers cmCommandArgument cmExpr) + SET(parsersLexers cmDependsFortran cmCommandArgument cmExpr) FIND_PROGRAM(YACC_EXECUTABLE NAMES yacc bison PATHS /usr/bin @@ -48,8 +48,10 @@ IF(CMAKE_REGENERATE_YACCLEX) ADD_CUSTOM_COMMAND( OUTPUT "${dst}" DEPENDS "${src}" - COMMAND ${YACC_EXECUTABLE} - ARGS --name-prefix=${name}_yy --defines="${hdr}" -o"${dst}" "${src}") + COMMAND + ${YACC_EXECUTABLE} + --name-prefix=${name}_yy --defines=${hdr} -o${dst} ${src} + ) SET(yacc_files ${yacc_files} "${dst}") ENDFOREACH(name) ADD_CUSTOM_TARGET(RerunYacc DEPENDS ${yacc_files}) @@ -63,8 +65,10 @@ IF(CMAKE_REGENERATE_YACCLEX) ADD_CUSTOM_COMMAND( OUTPUT "${dst}" DEPENDS "${src}" - COMMAND ${FLEX_EXECUTABLE} - ARGS --prefix=${name}_yy --header-file="${hdr}" -o"${dst}" "${src}") + COMMAND + ${FLEX_EXECUTABLE} + --prefix=${name}_yy --header-file=${hdr} -o${dst} ${src} + ) SET(lex_files ${lex_files} "${dst}") ENDFOREACH(name) ADD_CUSTOM_TARGET(RerunLex DEPENDS ${lex_files}) |