尽管我
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.dylib
。 cmake
是否故意避免使用苹果的ssl
库?