Skip to content

Commit

Permalink
Remove KSY option from CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasviGoyal committed Sep 30, 2023
1 parent 0124311 commit de82a75
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,6 @@ if(NOT awkward-headers_POPULATED)
add_subdirectory(${awkward-headers_SOURCE_DIR} ${awkward-headers_BINARY_DIR} EXCLUDE_FROM_ALL)
endif()

# Specifying the KSY file path
option(KSY_FILE "Specify the KSY file to use" "")
if (NOT KSY_FILE)
message(FATAL_ERROR "Please specify the KSY file using -DKSY_FILE=<path_to_ksy_file>")
endif()

# Run sbt package command to compile kaitai_struct_compiler code

execute_process(
Expand All @@ -45,7 +39,7 @@ execute_process(
)

execute_process(
COMMAND ./kaitai-struct-compiler -t awkward --outdir src-kaitai ${KSY_FILE}
COMMAND ./kaitai-struct-compiler -t awkward --outdir src-kaitai-awkward ${KSY_FILE}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)

Expand Down

0 comments on commit de82a75

Please sign in to comment.