From c1fe2763f4be31ff4c7ab9f4f530767eac1c84c9 Mon Sep 17 00:00:00 2001 From: Nico Schmidt <73886020+nicosmd@users.noreply.github.com> Date: Sat, 29 Apr 2023 22:00:41 +0200 Subject: [PATCH] Remove static linking for cross compilation (#164) Fixes #162. --- tool/CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tool/CMakeLists.txt b/tool/CMakeLists.txt index a7a650e..b345066 100644 --- a/tool/CMakeLists.txt +++ b/tool/CMakeLists.txt @@ -4,14 +4,6 @@ # builds tools add_executable(foonathan_memory_node_size_debugger test_types.hpp node_size_debugger.hpp node_size_debugger.cpp) -if (CMAKE_CROSSCOMPILING) - # statically link when cross compiling so emulator doesn't need library paths - if (MSVC) - set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "/WHOLEARCHIVE") - else() - set_target_properties(foonathan_memory_node_size_debugger PROPERTIES LINK_FLAGS "-static") - endif() -endif() if (MSVC) target_compile_options(foonathan_memory_node_size_debugger PRIVATE "/bigobj") endif()