Skip to content

Commit b33cc09

Browse files
committed
wip
1 parent 1d313a7 commit b33cc09

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

CMakeLists.txt

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,22 @@ macro(xsql_create_target target_name linkage output_name)
221221
set(XSQL_XEUS_TARGET xeus-static)
222222
endif ()
223223

224-
target_link_libraries(${target_name} PUBLIC
225-
${XSQL_XEUS_TARGET}
226-
xvega
227-
SQLiteCpp
228-
)
224+
if(EMSCRIPTEN)
225+
target_link_libraries(${target_name} PUBLIC
226+
${XSQL_XEUS_TARGET}
227+
${XVEGA_STATIC_LIBRARY}
228+
SQLiteCpp
229+
)
230+
231+
# fpic
232+
target_compile_options(${target_name} PUBLIC -fPIC)
233+
else()
234+
target_link_libraries(${target_name} PUBLIC
235+
${XSQL_XEUS_TARGET}
236+
xvega
237+
SQLiteCpp
238+
)
239+
endif()
229240

230241
if(NOT EMSCRIPTEN)
231242
# find_package(Threads) # TODO: add Threads as a dependence of xeus-static?

0 commit comments

Comments
 (0)