Browse Source

Revert caf406943e and don't install the kicad2step lib

This fixes https://gitlab.com/kicad/code/kicad/-/issues/9944 and reverts
caf406943e. The original fix caused issues
with some CMake versions because it tried to give library dependencies
to an object library, which can't have any library dependencies.
Instead, we need it as a static library, and since there is no need to
actually have it as an end-user library, it shouldn't be in the install
command.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/9944
7.0
Ian McInerney 4 years ago
parent
commit
fb36e1b582
  1. 4
      utils/kicad2step/CMakeLists.txt

4
utils/kicad2step/CMakeLists.txt

@ -19,7 +19,7 @@ set( KS2_LIB_FILES
# Break the library out for re-use by both kicad2step and any qa that needs it
# In future, this could move for re-use by other programs needing s-expr support (?)
add_library( kicad2step_lib OBJECT
add_library( kicad2step_lib STATIC
${KS2_LIB_FILES}
)
@ -65,7 +65,7 @@ if( APPLE )
RUNTIME_OUTPUT_DIRECTORY ${OSX_BUNDLE_BUILD_BIN_DIR}
)
else()
install( TARGETS kicad2step_bin kicad2step_lib
install( TARGETS kicad2step_bin
RUNTIME DESTINATION ${KICAD_BIN}
ARCHIVE DESTINATION ${KICAD_LIB}
COMPONENT binary )

Loading…
Cancel
Save