Skip to content

Commit

Permalink
no need to copy data directory for meta examples
Browse files Browse the repository at this point in the history
as we are using absolute path via SHOGUN_DATA variable
  • Loading branch information
vigsterkr committed Mar 20, 2020
1 parent 9581f73 commit e56697c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/meta/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e56697c

Please sign in to comment.