# Candidate-only wrapper around the pinned Emscripten 3.1.69 platform file. include("/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake") # FreeCAD declares Base/App/Part as SHARED. For this candidate, collect their # wasm object files as static archives and link shared dependencies separately. set(CMAKE_SHARED_LIBRARY_SUFFIX ".a") set(CMAKE_C_CREATE_SHARED_LIBRARY " rcs ") set(CMAKE_CXX_CREATE_SHARED_LIBRARY " rcs ") # FreeCAD's native compiler setup uses the CMake UNIX boolean to add # --undefined,dynamic_lookup. Emscripten emits SHARED as a relocatable object, # so that native-only linker branch must stay disabled for this candidate. set(UNIX FALSE)