I have built openssl on windows using nt.mak and no-shared flag to create static libraries. All my manually created VC++ projects link with static openssl libs and everything works fine.
Recently I am trying to use CMake to generate the VC++ project files. Compilation and linking works fine. But when I try to run the .exe, it starts looking for openssl dlls and fails.
The link instruction is within the source code like this:
#pragma comment(lib, "libeay32.lib")
#pragma comment(lib, "ssleay32.lib")
I have tried comparing the CMake generated project file with manually created project file, I am unable see the flag that would change thishavior.
The manually created project inks statically with openssl, CMake generated project links dynamically with openssl. How do I make CMake project file link statically with openssl?