Skip to content

Build fails when fetching OpenSSL

When openssl is not installed prior to build, Cmake will fetch it as a dependency of hestia, and then as dependency of ostk. This duplication leads to the following error:

#15 1.053 CMake Error at /share/cmake-3.26/Modules/ExternalProject.cmake:4007 (add_custom_target):
#15 1.053   add_custom_target cannot create target "openssl" because another target
#15 1.053   with the same name already exists.  The existing target is a custom target
#15 1.053   created in source directory "/hestia".  See documentation for policy
#15 1.053   CMP0002 for more details.
#15 1.053 Call Stack (most recent call first):
#15 1.053   build/_deps/ostk-src/infra/cmake/ostk/FetchDependencies.cmake:77 (ExternalProject_Add)
#15 1.053   build/_deps/ostk-src/infra/cmake/ostk/FetchDependencies.cmake:106 (build_openssl)
#15 1.053   build/_deps/ostk-src/src/common/CMakeLists.txt:4 (fetch_openssl)

This is the only dependency with this duplication.

Edited by Caelen Feller