修正 iOS 平台编译 Socket_ios.mm 文件找不到问题 (#2404)

CMake Error at 3rdpart/CMakeLists.txt:188 (add_library):
  Cannot find source file:

    /Users/shinianzhiqian/Desktop/ZLMediaKit/3rdpart/ZLToolKit/Network/Socket_ios.mm

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm .h
  .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90 .f95 .f03 .hip .ispc


CMake Error at 3rdpart/CMakeLists.txt:188 (add_library):
  No SOURCES given to target: zltoolkit
This commit is contained in:
朱如洪 2023-04-20 11:04:23 +08:00 committed by GitHub
parent 30182701f5
commit cb92cd0b89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ file(GLOB ToolKit_SRC_LIST
${ToolKit_ROOT}/src/*/*.c) ${ToolKit_ROOT}/src/*/*.c)
if(IOS) if(IOS)
list(APPEND ToolKit_SRC_LIST list(APPEND ToolKit_SRC_LIST
${ToolKit_ROOT}/Network/Socket_ios.mm) ${ToolKit_ROOT}/src/Network/Socket_ios.mm)
endif() endif()
################################################################### ###################################################################