]> granicus.if.org Git - graphviz/commitdiff
use absolute paths to lex & yacc files in lib/common for CMake
authorMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Tue, 6 Apr 2021 19:55:02 +0000 (21:55 +0200)
committerMagnus Jacobsson <Magnus.Jacobsson@berotec.se>
Sun, 11 Jul 2021 05:04:20 +0000 (07:04 +0200)
With relative paths, lcov has trouble finding them.

lib/common/CMakeLists.txt

index de233fd8b0ce22444d822e077df1f5b189fa06db..3cde1e3183447b0a9587b9ac6866faf03e8992a7 100644 (file)
@@ -1,4 +1,4 @@
-BISON_TARGET(HTMLparse htmlparse.y ${CMAKE_CURRENT_BINARY_DIR}/htmlparse.c)
+BISON_TARGET(HTMLparse ${CMAKE_CURRENT_SOURCE_DIR}/htmlparse.y ${CMAKE_CURRENT_BINARY_DIR}/htmlparse.c)
 
 add_definitions(-DGVC_EXPORTS -D_BLD_gvc=1)