Skip to content

Commit fe98191

Browse files
committed
fix build errors
1 parent 0ba8598 commit fe98191

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
mingw-w64-x86_64-expat
108108
mingw-w64-x86_64-cmake
109109
mingw-w64-x86_64-ninja
110+
unzip
110111
git
111112
112113
- uses: actions/checkout@v6

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ set(SOURCES
5757
XPListBox.cpp
5858
)
5959

60-
add_library(openSAM MODULE ${SOURCES})
60+
add_library(openSAM SHARED ${SOURCES})
6161
set_target_properties(openSAM PROPERTIES PREFIX "" SUFFIX ".xpl")
6262

6363
# ==============================================================================
@@ -110,7 +110,7 @@ elseif(APPLE)
110110
-Wall -fPIC -fno-stack-protector -fvisibility=hidden -ffast-math -Wno-deprecated-declarations
111111
)
112112
target_link_options(openSAM PRIVATE
113-
-dynamiclib -rdynamic -fvisibility=hidden
113+
-rdynamic -fvisibility=hidden
114114
-Wl,-exported_symbols_list,${CMAKE_CURRENT_SOURCE_DIR}/linkscript.mac
115115
)
116116
find_library(XPLM_FW XPLM PATHS "${SDK}/Libraries/Mac" REQUIRED)

0 commit comments

Comments
 (0)