1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-03-09 15:40:10 +00:00

update emulator portable

This commit is contained in:
neodiX 2025-01-09 21:27:12 +04:00
parent 6b4eae3a25
commit 9c7a1f51f5

View file

@ -35,7 +35,12 @@ else()
add_library(emulator STATIC ${EMULATOR_SOURCE} ${EMULATOR_HEADERS})
endif()
target_link_libraries(emulator PUBLIC emulator_static git)
if (PORTABLE)
target_link_libraries(emulator PUBLIC emulator_static git -static-libgcc -static-libstdc++))
else()
target_link_libraries(emulator PUBLIC emulator_static git)
endif()
generate_export_header(emulator EXPORT_FILE_NAME ${CMAKE_CURRENT_BINARY_DIR}/emulator_export.h)
target_include_directories(emulator PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>