From de82a75ab301f4ba7dabd54de23a23010c0e7f6a Mon Sep 17 00:00:00 2001 From: Manasvi Goyal Date: Sat, 30 Sep 2023 17:26:10 +0200 Subject: [PATCH] Remove KSY option from CMakeLists.txt --- CMakeLists.txt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cd773fc..3b74210 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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=") -endif() - # Run sbt package command to compile kaitai_struct_compiler code execute_process( @@ -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} )