diff --git a/CMakeLists.txt b/CMakeLists.txt index 1a82606d..017db67e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,7 +63,7 @@ if(SPDLOG_STATIC_LIB) set(SRC_FILES "${SRC_BASE}/spdlog.cpp") add_library(spdlog STATIC ${SRC_FILES}) target_include_directories(spdlog PUBLIC "$") - target_link_libraries(spdlog -Wl,--as-needed) + target_link_libraries(spdlog) else() add_library(spdlog INTERFACE) target_include_directories(spdlog INTERFACE "$")