From bb8603cfbf30893eaf4b686e2c55c6eecc865254 Mon Sep 17 00:00:00 2001 From: yo123abxd Date: Fri, 7 Jun 2024 03:06:25 +0000 Subject: [PATCH] enhance compatibility of linking static libraries --- cpp_easygraph/CMakeLists.txt | 6 +++--- gpu_easygraph/CMakeLists.txt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cpp_easygraph/CMakeLists.txt b/cpp_easygraph/CMakeLists.txt index 25eedb76..2a43c776 100644 --- a/cpp_easygraph/CMakeLists.txt +++ b/cpp_easygraph/CMakeLists.txt @@ -38,7 +38,7 @@ else() endif() -target_link_libraries(cpp_easygraph - PRIVATE -static-libgcc - PRIVATE -static-libstdc++ +set_target_properties(cpp_easygraph PROPERTIES + LINK_SEARCH_START_STATIC ON + LINK_SEARCH_END_STATIC ON ) \ No newline at end of file diff --git a/gpu_easygraph/CMakeLists.txt b/gpu_easygraph/CMakeLists.txt index bfaf78db..625c78d9 100644 --- a/gpu_easygraph/CMakeLists.txt +++ b/gpu_easygraph/CMakeLists.txt @@ -20,7 +20,7 @@ target_include_directories(gpu_easygraph PRIVATE functions ) -target_link_libraries(gpu_easygraph - PRIVATE -static-libgcc - PRIVATE -static-libstdc++ +set_target_properties(gpu_easygraph PROPERTIES + LINK_SEARCH_START_STATIC ON + LINK_SEARCH_END_STATIC ON ) \ No newline at end of file