From 9c7a1f51f5b150a05273e18782e7ca8708b3dffe Mon Sep 17 00:00:00 2001 From: neodiX Date: Thu, 9 Jan 2025 21:27:12 +0400 Subject: [PATCH] update emulator portable --- emulator/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/emulator/CMakeLists.txt b/emulator/CMakeLists.txt index 61de96d3..4a6cd291 100644 --- a/emulator/CMakeLists.txt +++ b/emulator/CMakeLists.txt @@ -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 $