Closed IdrisCodes closed 1 month ago
Hello,
I am trying to add the SDK to my project via CMake's FetchContent.
Because the SDK's CMakeLists.txt file is not the top CMake file anymore, an error occurs in platform/posix/transport/CMakeLists.txt.
platform/posix/transport/CMakeLists.txt
Specifically, this line, set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
As a workaround, I simply changed it to set(COREPKCS11_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/../../../libraries/standard/corePKCS11")
set(COREPKCS11_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/../../../libraries/standard/corePKCS11")
I believe this fix should be applied so that the SDK could be integrated in a more flexible way to other projects.
Thank you.
That seems reasonable to me. Would you like to raise a PR for this?
Hello,
I am trying to add the SDK to my project via CMake's FetchContent.
Because the SDK's CMakeLists.txt file is not the top CMake file anymore, an error occurs in
platform/posix/transport/CMakeLists.txt
.Specifically, this line,
set(COREPKCS11_LOCATION "${CMAKE_SOURCE_DIR}/libraries/standard/corePKCS11")
As a workaround, I simply changed it to
set(COREPKCS11_LOCATION "${CMAKE_CURRENT_SOURCE_DIR}/../../../libraries/standard/corePKCS11")
I believe this fix should be applied so that the SDK could be integrated in a more flexible way to other projects.
Thank you.