Browse Source

Gerbview: fix a link issue (symbol not found) on MINGW/MSYS2

It was due to a link order with libgerbview_navlib
jobs
jean-pierre charras 1 year ago
parent
commit
b5cb008734
  1. 5
      gerbview/CMakeLists.txt

5
gerbview/CMakeLists.txt

@ -138,9 +138,6 @@ target_link_libraries( gerbview_kiface_objects
message( STATUS "Including 3Dconnexion SpaceMouse navigation support in gerbview" )
add_subdirectory( navlib )
target_link_libraries( gerbview_kiface_objects PUBLIC gerbview_navlib)
add_dependencies( gerbview_kiface_objects gerbview_navlib )
# the main gerbview program, in DSO form.
@ -162,6 +159,8 @@ target_link_libraries( gerbview_kiface
${wxWidgets_LIBRARIES}
)
target_link_libraries( gerbview_kiface PUBLIC gerbview_navlib)
set_source_files_properties( gerbview.cpp PROPERTIES
# The KIFACE is in gerbview.cpp, export it:
COMPILE_DEFINITIONS "BUILD_KIWAY_DLL;COMPILING_DLL"

Loading…
Cancel
Save