Update CMakeLists.txt

I believe Prjtrellis has CMAKE define pytrellis as a shared module, not library.
On MacOS, this makes a difference and NextPNR expected ``.dylib``
instead of ``.so``. Things still work on Linux.
This commit is contained in:
Yehowshua Immanuel 2020-11-17 17:53:46 -05:00 committed by GitHub
parent 93faa752f5
commit fe8a011629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ else()
if(WIN32) if(WIN32)
set(pytrellis_lib pytrellis.pyd) set(pytrellis_lib pytrellis.pyd)
else() else()
set(pytrellis_lib pytrellis${CMAKE_SHARED_LIBRARY_SUFFIX}) set(pytrellis_lib pytrellis${CMAKE_SHARED_MODULE_SUFFIX})
endif() endif()
find_path(TRELLIS_LIBDIR ${pytrellis_lib} find_path(TRELLIS_LIBDIR ${pytrellis_lib}