Search for trellis in /usr/local/share/trellis if not specified with -DTRELLIS_ROOT
This commit is contained in:
parent
c1d15c749c
commit
95ed84fd91
@ -2,11 +2,11 @@
|
||||
set(devices 25k 45k 85k)
|
||||
|
||||
if (NOT DEFINED TRELLIS_ROOT)
|
||||
message(FATAL_ERROR "you must define TRELLIS_ROOT using -DTRELLIS_ROOT=/path/to/prjtrellis for ECP5 support")
|
||||
message(STATUS "TRELLIS_ROOT not defined using -DTRELLIS_ROOT=/path/to/prjtrellis. Default to /usr/local/share/trellis")
|
||||
set(TRELLIS_ROOT "/usr/local/share/trellis")
|
||||
endif()
|
||||
|
||||
|
||||
file( GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*)
|
||||
file(GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*)
|
||||
|
||||
if ("${found_pytrellis}" STREQUAL "")
|
||||
message(FATAL_ERROR "failed to find pytrellis library in ${TRELLIS_ROOT}/libtrellis/")
|
||||
|
Loading…
Reference in New Issue
Block a user