> I have tried to specify libraries and folders as

> ```
> set(MBEDTLS_INCLUDE_DIRS "something I thought make sense" CACHE STRING "blah 
> foo" FORCE)
> set(MBEDTLS_LIBRARY "something I thought make sense" CACHE STRING "blah foo" 
> FORCE)
> set(MBEDX509_LIBRARY "something I thought make sense" CACHE STRING "blah foo" 
> FORCE)
> set(MBEDCRYPTO_LIBRARY "something I thought make sense" CACHE STRING "blah 
> foo" FORCE)
> ```
>
> in the CMakeFile.txt that includes curl as a sub_directory but in vain.

This is tricky because curl does not check for possible target but always looks 
for installed copy (something we should improve).
What you've done here should at least keep CMake happy but will probably fail 
during compilation because curl will try to link to mbedtls libraries that 
might not exist yet as the build order is not deterministic unless you also set 
up some dependencies.
You'd either need to patch curl CMake to use the embedtls target or maybe 
settle on a superbuild pattern with ExternalProjexxt_Add.

BTW: Instead of custom scripts for downloading the external sources, you could 
use CMake's FetchContent.
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html

Reply via email to