Skip to content

Commit

Permalink
Revert to imported target linking on Linux and macOS to avoid linking…
Browse files Browse the repository at this point in the history
… errors on macOS.
  • Loading branch information
Kasper Peeters committed Sep 28, 2024
1 parent d79209b commit fb361e6
Showing 1 changed file with 21 additions and 9 deletions.
30 changes: 21 additions & 9 deletions frontend/gtkmm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -186,15 +186,27 @@ target_link_libraries(
)

if(USE_MICROTEX)
target_link_libraries(
cadabra2-gtk
PUBLIC
microtex-cairo # from MicroTeX
microtex # from MicroTeX
${CairoMM_LIBRARIES}
${PangoMM_LIBRARIES}
${Fontconfig_LIBRARIES}
)
if(WIN32)
target_link_libraries(
cadabra2-gtk
PUBLIC
microtex-cairo # from MicroTeX
microtex # from MicroTeX
${CairoMM_LIBRARIES}
${PangoMM_LIBRARIES}
${Fontconfig_LIBRARIES}
)
else()
target_link_libraries(
cadabra2-gtk
PUBLIC
microtex-cairo # from MicroTeX
microtex # from MicroTeX
PkgConfig::CairoMM
PkgConfig::PangoMM
PkgConfig::Fontconfig
)
endif()
endif()


Expand Down

0 comments on commit fb361e6

Please sign in to comment.