Skip to content

Can't find netssl #3904

@JoeyRxy

Description

@JoeyRxy
  • windows 11
  • cmake 2.25
  • vcpkg 2022-11-10-5fdee72bc1fceca198fb1ab7589837206a8b81ba

I've used vcpkg to install poco[core,netssl].

cmakelists.txt

cmake_minimum_required(VERSION 3.5)

project(<project-name>)

find_package(Poco REQUIRED COMPONENTS Foundation Net Util)

add_executable(${PROJECT_NAME} <srcs>)

target_include_directories(${PROJECT_NAME}
PRIVATE
    ${Poco_INCLUDE_DIR}
)

target_link_libraries(${PROJECT_NAME}
PRIVATE
    ${Poco_LIBRARIES}
)

When I use HTTPSClientSession, cmake build failed:

LINK : fatal error LNK1104: cannot open file 'PocoNetSSLWind.lib'

I check the link command and I find there's no netsslwind.lib linked. BTW the netsslwind.lib file exists. So I want to know how to use HTTPSClientSession?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions