Skip to content

Conversation

@gmtt
Copy link
Contributor

@gmtt gmtt commented Jul 15, 2025

Issue #, if available:
When compile device sdk as shared library, compiler complaining openssl/ssl.h header file not found, in the cmakelists.txt, it has find_package(OpenSSL), but the OPENSSL_INCLUDE_DIR is not used anywhere, it only linked OPENSSL_LIBRARIES

The cmake configure and compile command I used:

cmake -DCMAKE_TOOLCHAIN_FILE=$IOTMI_TOOLCHAIN_PATH/toolchain.cmake \                                                                                                                                            
  -DCMAKE_INSTALL_PREFIX=$SYSROOT_PATH/usr/local \
  -DCMAKE_PREFIX_PATH=$SYSROOT_PATH/usr/local \
  -DCMAKE_BUILD_TYPE=Release \
  -DBUILD_DEMOS=OFF \
  -DBUILD_CLONE_SUBMODULES=OFF \
  -DDOWNLOAD_CERTS=OFF \
  -DINSTALL_TO_SYSTEM=ON \
  -DBUILD_SHARED_LIBS=ON \
  ..

cmake --build . --target install

Description of changes:
Add OPENSSL_INCLUDE_DIR to include directories for target sockets_posix

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@xuelix xuelix self-assigned this Jul 18, 2025
@xuelix xuelix merged commit 3d170a0 into aws:main Jul 18, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants