From ea76675c8be17d1c9c42f67b1e1f0a9ef54683ef Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Thu, 13 Jul 2023 20:28:01 -0700 Subject: [PATCH] build: pass flex and bison to the interior cmake invocation These tools are used to generate `regsgen` and not by DS2. Pass along the paths to the interior cmake invocation so that when they are not in the path the configure succeeds. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0b58c07b..96304e2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,6 +116,8 @@ ExternalProject_Add(RegsGen2 -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_SYSTEM_NAME:STRING=${CMAKE_HOST_SYSTEM_NAME} -DCMAKE_SYSTEM_PROCESSOR:STRING=${CMAKE_HOST_SYSTEM_PROCESSOR} + -DBISON_EXECUTABLE=${BISON_EXECUTABLE} + -DFLEX_EXECUTABLE=${FLEX_EXECUTABLE} BUILD_COMMAND ${CMAKE_COMMAND} --build --config Release INSTALL_COMMAND "" BUILD_BYPRODUCTS