1 问题

2 原因

3 解决办法

add_library(crc32c STATIC ""
  # TODO(pwnall): Move the TARGET_OBJECTS generator expressions to the PRIVATE
  # section of target_sources when cmake_minimum_required becomes 3.9 or above.
  $<TARGET_OBJECTS:crc32c_arm64>
  $<TARGET_OBJECTS:crc32c_sse42>
)

4 ps

4.1 add_library(crc32c "" )

4.2 add_library(crc32c_sse42 OBJECT "")

4.3 第三个参数是 ""  要用 target_sources配合设置

02-16 18:47