mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-05 11:35:20 +02:00
[core] debug yosys version extraction [core] debug [core] now cache the cmake source dir [core] debug [core] debug kernel dependencies [core] debug common include directories [core] debug [core] debug simlib_help.inc [core] debug pmgen py path in cmake [core] syntax [core] debug flex source [core] restore [core] debug executable output as it now shows linking to . [core] debug yosys-abc directory [core] debug cmake share directory [core] debug yosys abc [core] restore shared directory location as yosys requires fixed location [core] rework link target to yosys sub dir under build [core] fixed the bug on yosys-config.install location for install [core] cmake syntax [core] correct the location for share directory [core] debug [core] debug [core] debug [core] enforce internal attributes; rename the YOSYS_ENABLE_UNIT_TESTS; use YOSYS_CMAKE_BINARY_DIR for all [core] apply review comments [core] rename [core] change all the CMAKE_BINARY_DIR to YOSYS_CMAKE_BINARY_DIR [core] replace CMAKE_SOURCE_DIR to YOSYS_CMAKE_SOURCE_DIR
15 lines
600 B
CMake
15 lines
600 B
CMake
cmake_minimum_required(VERSION 3.27)
|
|
set(CMAKE_MESSAGE_LOG_LEVEL ERROR)
|
|
set(CMAKE_MODULE_PATH "${YOSYS_CMAKE_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH})
|
|
include(YosysVersion)
|
|
|
|
yosys_extract_version()
|
|
if (YOSYS_VERSION_COMMIT EQUAL "0")
|
|
set(yosys_version "${YOSYS_VERSION_MAJOR}.${YOSYS_VERSION_MINOR}")
|
|
elseif (YOSYS_VERSION_COMMIT STREQUAL "")
|
|
set(yosys_version "${YOSYS_VERSION_MAJOR}.${YOSYS_VERSION_MINOR}.post9999")
|
|
else()
|
|
set(yosys_version "${YOSYS_VERSION_MAJOR}.${YOSYS_VERSION_MINOR}.post${YOSYS_VERSION_COMMIT}")
|
|
endif()
|
|
execute_process(COMMAND ${CMAKE_COMMAND} -E echo "${yosys_version}")
|