From 7a29365a3e6cdd5bd6706cf949db5b96bda1cb7e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Mon, 7 Sep 2026 09:50:04 +0200 Subject: [PATCH] cmake: fix wheels build --- .github/workflows/wheels.yml | 2 +- cmake/GetPyosysVersion.cmake | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 30214d6d8..8db8043c0 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -65,7 +65,7 @@ jobs: shell: bash run: | mkdir -p bison - curl -L https://ftpmirror.gnu.org/gnu/bison/bison-3.8.2.tar.gz | tar --strip-components=1 -xzC bison + curl -L https://ftp.gnu.org/gnu/bison/bison-3.8.2.tar.gz | tar --strip-components=1 -xzC bison ## Software installed by default in GitHub Action Runner VMs: ## https://github.com/actions/runner-images - if: ${{ matrix.os.family == 'macos' }} diff --git a/cmake/GetPyosysVersion.cmake b/cmake/GetPyosysVersion.cmake index 31c7536bf..eac746263 100644 --- a/cmake/GetPyosysVersion.cmake +++ b/cmake/GetPyosysVersion.cmake @@ -1,6 +1,7 @@ cmake_minimum_required(VERSION 3.27) set(CMAKE_MESSAGE_LOG_LEVEL ERROR) -set(CMAKE_MODULE_PATH "${YOSYS_CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) +set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) +set(YOSYS_CMAKE_SOURCE_DIR "${CMAKE_SOURCE_DIR}" CACHE INTERNAL "Save source path") include(YosysVersion) yosys_extract_version()