mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Fix compatibility problem with CMake policy CMP0025 (#2277)
Signed-off-by: Qingyao Sun <sunqingyao19970825@icloud.com>
This commit is contained in:
parent
7176aee852
commit
14643643c9
@ -33,6 +33,7 @@ Patrick Stewart
|
||||
Peter Monsson
|
||||
Philipp Wagner
|
||||
Pieter Kapsenberg
|
||||
Qingyao Sun
|
||||
Richard Myers
|
||||
Sean Cross
|
||||
Sebastien Van Cauwenberghe
|
||||
|
@ -163,7 +163,9 @@ function(verilate TARGET)
|
||||
endforeach()
|
||||
|
||||
string(TOLOWER ${CMAKE_CXX_COMPILER_ID} COMPILER)
|
||||
if (NOT COMPILER MATCHES "msvc|clang")
|
||||
if (COMPILER STREQUAL "appleclang")
|
||||
set(COMPILER clang)
|
||||
elseif (NOT COMPILER MATCHES "^msvc$|^clang$")
|
||||
set(COMPILER gcc)
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user