aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/bison.cmake
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-25 16:36:08 +0300
committershadchin <shadchin@yandex-team.ru>2022-02-25 16:36:08 +0300
commit42757795514a0ad28c3a4046f1024469e6dd92b7 (patch)
treeef854cb57f5d30ba86775add15f9f55a8a6aa4c2 /cmake/bison.cmake
parent797beae740bb6bafe9fe620409af9f8af30548c1 (diff)
downloadydb-42757795514a0ad28c3a4046f1024469e6dd92b7.tar.gz
DTCC-822 Put double-conversion under yamaker
ref:50f8b947dedd3183d21db08bf8ab226bb09535d1
Diffstat (limited to 'cmake/bison.cmake')
-rw-r--r--cmake/bison.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/bison.cmake b/cmake/bison.cmake
index 440d86ffed..df444f031e 100644
--- a/cmake/bison.cmake
+++ b/cmake/bison.cmake
@@ -1,6 +1,6 @@
function(target_bison_parser Tgt Scope)
foreach(arg ${ARGN})
- file(REAL_PATH ${arg} argPath)
+ get_filename_component(argPath ${arg} REALPATH)
if (argPath MATCHES "${CMAKE_SOURCE_DIR}/.*")
file(RELATIVE_PATH argRel ${CMAKE_CURRENT_SOURCE_DIR} ${argPath})
string(REPLACE ".." "__" ArgInBindir ${argRel})
@@ -12,6 +12,7 @@ function(target_bison_parser Tgt Scope)
get_filename_component(OutputDir ${ArgInBindir} DIRECTORY)
add_custom_command(
OUTPUT ${OutputDir}/${OutputBase}.cpp ${OutputDir}/${OutputBase}.h
+ COMMAND ${CMAKE_COMMAND} -E make_directory ${OutputDir}
COMMAND ${CMAKE_BINARY_DIR}/bin/bison/bin/bison ${BISON_FLAGS} -v --defines=${OutputDir}/${OutputBase}.h -o ${OutputDir}/${OutputBase}.cpp ${arg}
DEPENDS ${arg}
)