Skip to content

Commit

Permalink
enhance compatibility of linking static libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
yo123abxd committed Jun 7, 2024
1 parent 9340762 commit bb8603c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions cpp_easygraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
6 changes: 3 additions & 3 deletions gpu_easygraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

0 comments on commit bb8603c

Please sign in to comment.