From 95ed84fd91d4ada949732ba8e1228dfaea10da2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20M=C3=BCller?= Date: Sun, 13 Jan 2019 17:10:55 +0100 Subject: Search for trellis in /usr/local/share/trellis if not specified with -DTRELLIS_ROOT --- ecp5/family.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ecp5') diff --git a/ecp5/family.cmake b/ecp5/family.cmake index 1aae2bea..2d0a5d66 100644 --- a/ecp5/family.cmake +++ b/ecp5/family.cmake @@ -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/") -- cgit v1.2.3