diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2020-04-11 22:05:30 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2020-04-11 22:05:30 +0200 |
commit | 96c14abd1f79a152f3e5a1b4897ca2e7a91e7b27 (patch) | |
tree | acdada1b9a17420026b4c090afb3349efcbd8bd8 /ecp5/family.cmake | |
parent | 3eff12a2a0b1f99bbc3cacddd3764fbf98330865 (diff) | |
download | nextpnr-96c14abd1f79a152f3e5a1b4897ca2e7a91e7b27.tar.gz nextpnr-96c14abd1f79a152f3e5a1b4897ca2e7a91e7b27.tar.bz2 nextpnr-96c14abd1f79a152f3e5a1b4897ca2e7a91e7b27.zip |
Add TRELLIS_PROGRAM_PREFIX
Diffstat (limited to 'ecp5/family.cmake')
-rw-r--r-- | ecp5/family.cmake | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/ecp5/family.cmake b/ecp5/family.cmake index 14112964..9415e37e 100644 --- a/ecp5/family.cmake +++ b/ecp5/family.cmake @@ -1,6 +1,8 @@ if (NOT EXTERNAL_CHIPDB) set(devices 25k 45k 85k) + set(TRELLIS_PROGRAM_PREFIX "" CACHE STRING "Name prefix for trellis") + if (NOT DEFINED TRELLIS_INSTALL_PREFIX) message(STATUS "TRELLIS_INSTALL_PREFIX not defined using -DTRELLIS_INSTALL_PREFIX=/path-prefix/to/prjtrellis-installation. Defaulted to ${CMAKE_INSTALL_PREFIX}") set(TRELLIS_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) @@ -8,8 +10,8 @@ if (NOT EXTERNAL_CHIPDB) if (NOT DEFINED PYTRELLIS_LIBDIR) find_library(PYTRELLIS pytrellis.so - PATHS ${TRELLIS_INSTALL_PREFIX}/lib/trellis - PATH_SUFFIXES trellis + PATHS ${TRELLIS_INSTALL_PREFIX}/lib/${TRELLIS_PROGRAM_PREFIX}trellis + PATH_SUFFIXES ${TRELLIS_PROGRAM_PREFIX}trellis DOC "Location of pytrellis library") if ("${PYTRELLIS}" STREQUAL "PYTRELLIS-NOTFOUND") @@ -27,9 +29,9 @@ if (NOT EXTERNAL_CHIPDB) target_include_directories(ecp5_chipdb PRIVATE ${family}/) if (CMAKE_HOST_WIN32) - set(ENV_CMD ${CMAKE_COMMAND} -E env "PYTHONPATH=\"${PYTRELLIS_LIBDIR}\;${TRELLIS_INSTALL_PREFIX}/share/trellis/util/common\;${TRELLIS_INSTALL_PREFIX}/share/trellis/timing/util\"") + set(ENV_CMD ${CMAKE_COMMAND} -E env "PYTHONPATH=\"${PYTRELLIS_LIBDIR}\;${TRELLIS_INSTALL_PREFIX}/share/${TRELLIS_PROGRAM_PREFIX}trellis/util/common\;${TRELLIS_INSTALL_PREFIX}/share/${TRELLIS_PROGRAM_PREFIX}trellis/timing/util\"") else() - set(ENV_CMD ${CMAKE_COMMAND} -E env "PYTHONPATH=${PYTRELLIS_LIBDIR}\:${TRELLIS_INSTALL_PREFIX}/share/trellis/util/common:${TRELLIS_INSTALL_PREFIX}/share/trellis/timing/util") + set(ENV_CMD ${CMAKE_COMMAND} -E env "PYTHONPATH=${PYTRELLIS_LIBDIR}\:${TRELLIS_INSTALL_PREFIX}/share/${TRELLIS_PROGRAM_PREFIX}trellis/util/common:${TRELLIS_INSTALL_PREFIX}/share/${TRELLIS_PROGRAM_PREFIX}trellis/timing/util") endif() if (MSVC) |