I have installed latest Win64 OpenSSL v3.2.1, cmake version 3.24.2 and VS Studio 2022. I have the env variables added. I am getting this strange error which is frustrating.
Creating directories for 'aws-cpp-sdk-gamelift-server'
Building Custom Rule C:/GL5.1/GameLift-Cpp-ServerSDK-5.1.2/CMakeLists.txt
No download step for 'aws-cpp-sdk-gamelift-server'
No update step for 'aws-cpp-sdk-gamelift-server'
Performing forcebuild step for 'aws-cpp-sdk-gamelift-server'
Force build of aws-cpp-sdk-gamelift-server
No patch step for 'aws-cpp-sdk-gamelift-server'
Performing configure step for 'aws-cpp-sdk-gamelift-server'
loading initial cache file C:/GL5.1/GameLift-Cpp-ServerSDK-5.1.2/out/aws-cpp-sdk-gamelift-server-prefix/tmp/aws-cpp-s
dk-gamelift-server-cache-Release.cmake
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- The C compiler identification is MSVC 19.39.33523.0
-- The CXX compiler identification is MSVC 19.39.33523.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/bi
n/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.39.33519/
bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
-- Configuring incomplete, errors occurred!
See also "C:/GL5.1/GameLift-Cpp-ServerSDK-5.1.2/out/gamelift-server-sdk/CMakeFiles/CMakeOutput.log".
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the
system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY) (found
version "3.1.5")
Call Stack (most recent call first):
C:/Program Files/CMake/share/cmake-3.24/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
C:/Program Files/CMake/share/cmake-3.24/Modules/FindOpenSSL.cmake:599 (find_package_handle_standard_args)
CMakeLists.txt:10 (find_package)
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets(254,5): e
rror MSB8066: Custom build for 'C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\CMakeFiles\dd3dfc294a8f7f34f4abdb3ff476e1fa\a
ws-cpp-sdk-gamelift-server-mkdir.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\CMakeFiles\dd3dfc294a8f7f34f4abdb3ff476
e1fa\aws-cpp-sdk-gamelift-server-download.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\CMakeFiles\dd3dfc294a8f7f34f4a
bdb3ff476e1fa\aws-cpp-sdk-gamelift-server-update.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\CMakeFiles\dd3dfc294a8f
7f34f4abdb3ff476e1fa\aws-cpp-sdk-gamelift-server-forcebuild.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\CMakeFiles\d
d3dfc294a8f7f34f4abdb3ff476e1fa\aws-cpp-sdk-gamelift-server-patch.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\CMakeF
iles\dd3dfc294a8f7f34f4abdb3ff476e1fa\aws-cpp-sdk-gamelift-server-configure.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2
out\CMakeFiles\dd3dfc294a8f7f34f4abdb3ff476e1fa\aws-cpp-sdk-gamelift-server-build.rule;C:\GL5.1\GameLift-Cpp-ServerSDK-
5.1.2\out\CMakeFiles\dd3dfc294a8f7f34f4abdb3ff476e1fa\aws-cpp-sdk-gamelift-server-install.rule;C:\GL5.1\GameLift-Cpp-Se
rverSDK-5.1.2\out\CMakeFiles\ebe82f9d7c486402e9f2bdc284235208\aws-cpp-sdk-gamelift-server-complete.rule;C:\GL5.1\GameLi
ft-Cpp-ServerSDK-5.1.2\out\CMakeFiles\82c7e594b632b75a3c963e898e6789f6\aws-cpp-sdk-gamelift-server.rule;C:\GL5.1\GameLi
ft-Cpp-ServerSDK-5.1.2\CMakeLists.txt' exited with code 1. [C:\GL5.1\GameLift-Cpp-ServerSDK-5.1.2\out\aws-cpp-sdk-gamel
ift-server.vcxproj]
It worked when I installed OpenSSL 1.1.1w. I had OpenSSL 3.1.5 before.