|
@@ -179,14 +179,16 @@ if(spdlog_FOUND)
|
|
|
if(ENABLE_SPDLOG_STATIC_LIB)
|
|
|
set_target_properties(External::spdlog PROPERTIES
|
|
|
IMPORTED_LOCATION "${spdlog_STATIC_LIBRARY}")
|
|
|
- #添加spdlog需要的依赖库
|
|
|
- set_target_properties(External::spdlog PROPERTIES
|
|
|
- INTERFACE_LINK_LIBRARIES "pthread")
|
|
|
else()
|
|
|
set_target_properties(External::spdlog PROPERTIES
|
|
|
IMPORTED_LOCATION "${spdlog_LIBRARY}")
|
|
|
+ endif()
|
|
|
+ #添加spdlog需要的依赖库
|
|
|
+ if(CMAKE_SYSTEM_NAME MATCHES "Linux")
|
|
|
set_target_properties(External::spdlog PROPERTIES
|
|
|
INTERFACE_LINK_LIBRARIES "pthread")
|
|
|
+ elseif(CMAKE_SYSTEM_NAME MATCHES "Windows")
|
|
|
+
|
|
|
endif()
|
|
|
|
|
|
#添加源文件
|