Skip to content

Commit

Permalink
only link statically on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bjia56 authored Jan 17, 2025
1 parent 2eb2abd commit 5200d3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ elseif(${TARGET} STREQUAL "plugin")
set(BINARY_NAME "cosmotop-plugin.exe")
add_executable(${BINARY_NAME} ${PLUGIN_SOURCES})
target_compile_definitions(${BINARY_NAME} PRIVATE COSMO_PLUGIN_WANT_MAIN)
if(NOT CMAKE_SYSTEM MATCHES "Darwin")
if(CMAKE_SYSTEM MATCHES "Linux")
target_compile_options(${BINARY_NAME} PRIVATE -static)
endif()
else()
Expand Down

0 comments on commit 5200d3f

Please sign in to comment.