diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e47303a..5abfdc24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -114,11 +114,9 @@ if(NOT IOS AND NOT ANDROID) endif() #编译静态库 -if(NOT WIN32) - add_library(${CMAKE_PROJECT_NAME}_static STATIC ${SRC_LIST}) - set_target_properties(${CMAKE_PROJECT_NAME}_static PROPERTIES OUTPUT_NAME "${CMAKE_PROJECT_NAME}") - install(TARGETS ${CMAKE_PROJECT_NAME}_static ARCHIVE DESTINATION ${INSTALL_PATH_LIB}) -endif() +add_library(${CMAKE_PROJECT_NAME}_static STATIC ${SRC_LIST}) +set_target_properties(${CMAKE_PROJECT_NAME}_static PROPERTIES OUTPUT_NAME "${CMAKE_PROJECT_NAME}") +install(TARGETS ${CMAKE_PROJECT_NAME}_static ARCHIVE DESTINATION ${INSTALL_PATH_LIB}) #测试程序 if(NOT IOS)