Skip to content

Commit

Permalink
Merge pull request YosysHQ#121 from kost/fix-cmake-python
Browse files Browse the repository at this point in the history
pytrellis should be target if BUILD_PYTHON exists
  • Loading branch information
gatecat committed Mar 10, 2020
2 parents 2e0e3c2 + f1b7f99 commit 422ab22
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libtrellis/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ find_package(PythonInterp 3.5 REQUIRED)

if (BUILD_PYTHON)
find_package(PythonLibs 3.5 REQUIRED)
set(PythonInstallTarget "pytrellis")
endif()

find_package(Boost REQUIRED COMPONENTS ${boost_libs})
Expand Down Expand Up @@ -174,7 +175,7 @@ target_link_libraries(ecpmulti trellis ${Boost_LIBRARIES} ${CMAKE_DL_LIBS} ${lin
setup_rpath(ecpmulti)

if (BUILD_SHARED)
install(TARGETS trellis ecpbram ecppack ecppll ecpunpack ecpmulti pytrellis
install(TARGETS trellis ecpbram ecppack ecppll ecpunpack ecpmulti ${PythonInstallTarget}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/trellis
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
else()
Expand Down

0 comments on commit 422ab22

Please sign in to comment.