Search for trellis in /usr/local/share/trellis if not specified with -DTRELLIS_ROOT

This commit is contained in:
Tobias Müller 2019-01-13 17:10:55 +01:00
parent c1d15c749c
commit 95ed84fd91

View File

@ -2,10 +2,10 @@
set(devices 25k 45k 85k) set(devices 25k 45k 85k)
if (NOT DEFINED TRELLIS_ROOT) 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() endif()
file(GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*) file(GLOB found_pytrellis ${TRELLIS_ROOT}/libtrellis/pytrellis.*)
if ("${found_pytrellis}" STREQUAL "") if ("${found_pytrellis}" STREQUAL "")