Skip to content

Commit

Permalink
Forcing static linking for embedded dependencies (#2173)
Browse files Browse the repository at this point in the history
  • Loading branch information
borgmanJeremy committed Dec 21, 2021
1 parent 2e2dbdc commit 1bd8857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/Linux-pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,6 @@ jobs:
fail-fast: false
matrix:
dist:
- {
name: fedora-33,
os: fedora,
symbol: 33,
arch: x86_64
}
- {
name: fedora-34,
os: fedora,
Expand Down
9 changes: 2 additions & 7 deletions external/Qt-Color-Widgets/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTORCC ON)


option(BUILD_SHARED_LIBS "Build the shared library" ON)
option(BUILD_STATIC_LIBS "Build the static library" OFF)

set (TARGET_NAME ${COLORWIDGET_PROJECT_NAME})
option(COLOR_WIDGETS_QT_SUFFIX "Append qt version to the target output files" OFF)
if ( COLOR_WIDGETS_QT_SUFFIX )
Expand All @@ -70,12 +67,10 @@ endif()
set (INCLUDE_PREFIX "QtColorWidgets")
set (COLOR_WIDGETS_LIBRARY "${TARGET_NAME}")

if ( ${BUILD_STATIC_LIBS} )
add_definitions(-DQTCOLORWIDGETS_STATICALLY_LINKED)
endif()
add_definitions(-DQTCOLORWIDGETS_STATICALLY_LINKED)


add_library (${TARGET_NAME} "")
add_library (${TARGET_NAME} STATIC "")
set_target_properties(${TARGET_NAME}
PROPERTIES
EXPORT_NAME "${TARGET_NAME}${TARGET_OUTPUT_SUFFIX}")
Expand Down

0 comments on commit 1bd8857

Please sign in to comment.