Changeset: feb622621909 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/feb622621909
Modified Files:
        monetdb5/modules/atoms/pg_jsonpath/CMakeLists.txt
Branch: json-extend
Log Message:

copy grammar and flex files two build directory for debugging purposes


diffs (33 lines):

diff --git a/monetdb5/modules/atoms/pg_jsonpath/CMakeLists.txt 
b/monetdb5/modules/atoms/pg_jsonpath/CMakeLists.txt
--- a/monetdb5/modules/atoms/pg_jsonpath/CMakeLists.txt
+++ b/monetdb5/modules/atoms/pg_jsonpath/CMakeLists.txt
@@ -13,7 +13,7 @@
 add_library(pg_jsonpath OBJECT)
 
 FLEX_TARGET(jsonpath_scanner
-    jsonpath_scan.l 
+    jsonpath_scan.l
     ${CMAKE_CURRENT_BINARY_DIR}/jsonpath_scan.c
     DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/jsonpath_scan.h)
 
@@ -23,11 +23,19 @@ BISON_TARGET(jsonpath_parser
   COMPILE_FLAGS "-d -p json -Wno-conflicts-sr -Wno-conflicts-rr"
   DEFINES_FILE ${CMAKE_CURRENT_BINARY_DIR}/jsonpath_gram.h)
 
-  target_sources(pg_jsonpath
+target_sources(pg_jsonpath
   PRIVATE
   ${FLEX_jsonpath_scanner_OUTPUTS}
   ${BISON_jsonpath_parser_OUTPUT_SOURCE})
 
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/jsonpath_scan.l
+  ${CMAKE_CURRENT_BINARY_DIR}/jsonpath_scan.l
+  COPYONLY)
+
+configure_file(${CMAKE_CURRENT_SOURCE_DIR}/jsonpath_gram.y
+  ${CMAKE_CURRENT_BINARY_DIR}/jsonpath_gram.y
+  COPYONLY)
+
 target_link_libraries(pg_jsonpath
   PRIVATE
   monetdb_config_header
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to