From e56697c04cca2f526ee759b5faf7084162f48ab5 Mon Sep 17 00:00:00 2001 From: Viktor Gal Date: Tue, 3 Mar 2020 08:08:50 +0100 Subject: [PATCH] no need to copy data directory for meta examples as we are using absolute path via SHOGUN_DATA variable --- examples/meta/CMakeLists.txt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/examples/meta/CMakeLists.txt b/examples/meta/CMakeLists.txt index b6d5fe2ba22..c7fed8dfdff 100644 --- a/examples/meta/CMakeLists.txt +++ b/examples/meta/CMakeLists.txt @@ -42,12 +42,7 @@ add_custom_target(parse_lex_files ALL DEPENDS ${GENERATED_PARSER_FILES}) # list of interfaces for which we dont generate meta examples SET(DISABLED_INTERFACES INTERFACE_PERL) -# handle the data path -IF (NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/data) - # copy data symlink to cmake binary dir so that we can execute meta examples in there - CREATE_DATA_SYMLINK(${CMAKE_CURRENT_SOURCE_DIR}/data ${CMAKE_CURRENT_BINARY_DIR}/data) -ENDIF() -SET(SHOGUN_DATA ${CMAKE_CURRENT_BINARY_DIR}/data) +SET(SHOGUN_DATA ${CMAKE_SOURCE_DIR}/data/toy) # translate the meta examples to the target languages using the .sg.in files # first cmake will do variable substitution on @SHOGUN_DATA@ and generate .sg files