Fix a link issue (symbol not found) on Windows.

This commit is contained in:
jean-pierre charras 2020-06-21 10:32:42 +02:00
parent 970921f88b
commit 65550e6a6e
2 changed files with 2 additions and 3 deletions

View File

@ -16,6 +16,7 @@ set( BITMAP2COMPONENT_SRCS
bitmap2component.cpp
bitmap2cmp_gui_base.cpp
bitmap2cmp_gui.cpp
../common/env_vars.cpp # needed on MSW to avoid a link issue (a symbol not found)
)
set_source_files_properties( ${CMAKE_SOURCE_DIR}/common/single_top.cpp PROPERTIES
@ -50,7 +51,6 @@ add_executable( bitmap2component WIN32 MACOSX_BUNDLE
target_link_libraries( bitmap2component
common
gal
${wxWidgets_LIBRARIES}
potrace
)

View File

@ -36,6 +36,7 @@ set( PCB_CALCULATOR_SRCS
attenuators/attenuator_classes.cpp
dialogs/pcb_calculator_frame_base.cpp
dialogs/dialog_regulator_data_base.cpp
../common/env_vars.cpp # needed on MSW to avoid a link issue (a symbol not found)
)
if( MINGW )
@ -68,8 +69,6 @@ target_link_libraries( pcb_calculator
#singletop # replaces common, giving us restrictive control and link warnings.
# There's way too much crap coming in from common yet.
common
gal
common
${wxWidgets_LIBRARIES}
)