【发布时间】:2019-01-30 16:15:48
【问题描述】:
我正在尝试在我的 Mac 上安装 Simple Encrypted Arithmetic Library (SEAL) v2.3.1(运行 MacOS High Sierra 版本 10.13.6)。
我按照 INSTALL.txt 中的说明进行操作,在尝试构建 SEALExamples 时,我在运行 cmake 时遇到了错误。终端输出如下:
Rachels-MacBook-Pro:SEALExamples rachelplayer$ cmake .
-- SEAL detected (version 2.3.1)
-- SEAL build type: Release
-- SEAL debug mode: OFF
-- SEAL using Microsoft GSL: OFF
-- Configuring done
CMake Error at CMakeLists.txt:8 (add_executable):
Target "sealexamples" links to target "Threads::Threads" but the
target was not found. Perhaps a find_package() call is missing
for an IMPORTED target, or an ALIAS target is missing?
请告诉我如何解决它?我不确定这是一般错误还是只是我的电脑。谢谢!
【问题讨论】:
-
它的 CMakeLists.txt 可能在第 8 行之前缺少
include(FindThreads)。