diff --git a/CMakeLists.txt b/CMakeLists.txt index 528f5270..4bfc1a46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,6 @@ option(CANDY_STATIC "Static linking dependent libraries") set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) if (${CANDY_STATIC}) - if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") - endif() set(CMAKE_SKIP_BUILD_RPATH TRUE) set(CANDY_STATIC_OPENSSL 1) set(CANDY_STATIC_FMT 1)