我正在尝试在我的Mac电脑(运行MacOS High Sierra version10.13.6)上安装Simple Encrypted Arithmetic Library (SEAL) v2.3.1。
我按照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?能告诉我怎么修吗?我不确定这是一个普通的bug还是我的电脑。谢谢!
发布于 2018-08-24 23:46:52
这是SEAL/cmake/SEALConfig.cmake.in中的错误。为了快速修复,请将以下内容添加到文件的开头:
include(CMakeFindDependencyMacro)
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
set(THREADS_PREFER_PTHREAD_FLAG TRUE)
find_dependency(Threads REQUIRED)然后重新配置、构建和重新安装SEAL并重建SEALExamples。
https://stackoverflow.com/questions/52000106
复制相似问题