We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d313a7 commit b33cc09Copy full SHA for b33cc09
CMakeLists.txt
@@ -221,11 +221,22 @@ macro(xsql_create_target target_name linkage output_name)
221
set(XSQL_XEUS_TARGET xeus-static)
222
endif ()
223
224
- target_link_libraries(${target_name} PUBLIC
225
- ${XSQL_XEUS_TARGET}
226
- xvega
227
- SQLiteCpp
228
- )
+ if(EMSCRIPTEN)
+ target_link_libraries(${target_name} PUBLIC
+ ${XSQL_XEUS_TARGET}
+ ${XVEGA_STATIC_LIBRARY}
+ SQLiteCpp
229
+ )
230
+
231
+ # fpic
232
+ target_compile_options(${target_name} PUBLIC -fPIC)
233
+ else()
234
235
236
+ xvega
237
238
239
+ endif()
240
241
if(NOT EMSCRIPTEN)
242
# find_package(Threads) # TODO: add Threads as a dependence of xeus-static?
0 commit comments