From 180aa52c74b8e2a87627800cd46bd24b3a29315f Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 18 Oct 2021 18:58:35 +0200 Subject: [PATCH] Link is not enough, copy & duplicate tab files for LEF & DEF. --- lefdef/src/def/def/CMakeLists.txt | 3 ++- lefdef/src/lef/lef/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/lefdef/src/def/def/CMakeLists.txt b/lefdef/src/def/def/CMakeLists.txt index f35b4595..3e013e33 100644 --- a/lefdef/src/def/def/CMakeLists.txt +++ b/lefdef/src/def/def/CMakeLists.txt @@ -81,7 +81,8 @@ add_custom_command ( OUTPUT def.tab.cpp DEPENDS ${DefParserGrammar} COMMAND ${BISON_EXECUTABLE} -v -p defyy -d ${DefParserGrammar} -o def.tab.cpp - COMMAND ln -s def.tab.hpp def.tab.h + COMMAND cp def.tab.hpp ${LEFDEF_SOURCE_DIR}/def.tab.hpp + COMMAND cp def.tab.hpp ${LEFDEF_SOURCE_DIR}/def.tab.h #COMMAND mv def.tab.cpp ${LEFDEF_SOURCE_DIR}/src/def/def/def.tab.cpp COMMENT "Generating DEF parser (bison)" ) diff --git a/lefdef/src/lef/lef/CMakeLists.txt b/lefdef/src/lef/lef/CMakeLists.txt index 565d4b39..a3dcb871 100644 --- a/lefdef/src/lef/lef/CMakeLists.txt +++ b/lefdef/src/lef/lef/CMakeLists.txt @@ -61,8 +61,8 @@ add_custom_command ( OUTPUT lef.tab.cpp DEPENDS ${LefParserGrammar} COMMAND ${BISON_EXECUTABLE} -v -p lefyy -d ${LefParserGrammar} -o lef.tab.cpp - COMMAND ln -s lef.tab.hpp lef.tab.h - #COMMAND mv lef.tab.cpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.cpp + COMMAND cp lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.hpp + COMMAND cp lef.tab.hpp ${LEFDEF_SOURCE_DIR}/src/lef/lef/lef.tab.h COMMENT "Generating LEF parser (bison)" ) set_source_files_properties ( lef.tab.cpp GENERATED )