xkaraman left a comment (kamailio/kamailio#4576)

@miconda Just pushed an updated version for more flexible custom installation.

Since we needed to provide both include dir and the library itself, i opted to 
create a new findunistring.cmake which can be used to with `find_package`.

This allows the user to provide the required stuff with 3 ways at least:
1. Provide the two as a seperate option in cmake config with 
`-DUnistring_INCLUDE_DIRS=/path/to/library/include 
-DUnistring_LIBRARIES=/path/to/library/library.so`
2. Provide just one option called `-DUnistring_ROOT=/path/to/library`. It will 
discover the the appropriate values if install in a standard subfolder scheme 
like `include`, `lib`. Actually this option is available to most 
`find_package(Package_Name) calls, so if you have any other custom installation 
you want to use like for `openssl` (we are using find_package to find it), you 
can just provide `-DOpenSSL_ROOT=/path/to/openssl`
3. Provide the `-DCMAKE_PREFIX_PATH=/path/to/library/;/path/to/some/other` 
option to allow `cmake` to search also in this folders when 
`find_package|library|path` calls are made.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4576#issuecomment-3824079470
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/4576/[email protected]>
_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to