cmake不包括/ usr / local / opt / openssl / lib

时间:2018-06-29 17:37:11

标签: xcode

尽管我

add_library(${PROJECT_NAME} SHARED ${SOURCES} ${HEADERS})
include_directories(/usr/local/opt/openssl/include)
link_directories(/usr/local/opt/openssl/lib)
target_link_libraries(${PROJECT_NAME} ssl crypto)

cmake生成的编译器命令没有-L/usr/local/opt/openssl/lib,并且链接器终止于

ld: library not found for -lssl

/usr/local/opt/openssl/lib的确有libssl.dylibcmake是否故意避免使用苹果的ssl库?

0 个答案:

没有答案