2019-10-17 23:44:10 +00:00
|
|
|
######################################################################
|
|
|
|
#
|
|
|
|
# DESCRIPTION: CMake version configuration file for Verilator
|
|
|
|
#
|
|
|
|
# This allows specifying a minimum Verilator version.
|
|
|
|
# Include it in your CMakeLists.txt using:
|
|
|
|
#
|
2024-10-17 20:39:51 +00:00
|
|
|
# find_package(verilator 4.0)
|
2019-10-17 23:44:10 +00:00
|
|
|
#
|
2024-01-01 08:19:59 +00:00
|
|
|
# Copyright 2003-2024 by Wilson Snyder. This program is free software; you
|
2020-03-21 15:24:24 +00:00
|
|
|
# can redistribute it and/or modify it under the terms of either the GNU
|
2019-10-17 23:44:10 +00:00
|
|
|
# Lesser General Public License Version 3 or the Perl Artistic License
|
|
|
|
# Version 2.0.
|
2020-03-21 15:24:24 +00:00
|
|
|
# SPDX-License-Identifier: LGPL-3.0-only OR Artistic-2.0
|
2019-10-17 23:44:10 +00:00
|
|
|
#
|
|
|
|
######################################################################
|
|
|
|
|
2021-04-13 13:06:53 +00:00
|
|
|
set(PACKAGE_VERSION "@PACKAGE_VERSION_NUMBER@")
|
2019-10-17 23:44:10 +00:00
|
|
|
|
|
|
|
if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION)
|
2024-09-25 00:43:19 +00:00
|
|
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
2019-10-17 23:44:10 +00:00
|
|
|
else()
|
2024-09-25 00:43:19 +00:00
|
|
|
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
|
|
|
if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION)
|
|
|
|
set(PACKAGE_VERSION_EXACT TRUE)
|
|
|
|
endif()
|
2019-10-17 23:44:10 +00:00
|
|
|
endif()
|