diff options
| author | Cara Salter <cara@devcara.com> | 2023-05-31 20:15:08 -0400 | 
|---|---|---|
| committer | Cara Salter <cara@devcara.com> | 2023-05-31 20:15:08 -0400 | 
| commit | e09e7825369ec8217456065d31dbbbb992b7f1bb (patch) | |
| tree | 37cfbc3b756f75fd6fc446090c18e4ea3464562e /cmake/Findcpr.cmake | |
| parent | 31e862b7a4c5c1af9a8b331853d6bc01c49f2816 (diff) | |
| download | 142bot-e09e7825369ec8217456065d31dbbbb992b7f1bb.tar.gz 142bot-e09e7825369ec8217456065d31dbbbb992b7f1bb.zip | |
meta: Use system libraries to compile0.5
Also: try to make pqxx not use local socket for connections
(unsuccessful)
Change-Id: I351fe1a405a7c204e1276a90da75ab3d32f51bdc
Diffstat (limited to 'cmake/Findcpr.cmake')
| -rw-r--r-- | cmake/Findcpr.cmake | 14 | 
1 files changed, 14 insertions, 0 deletions
| diff --git a/cmake/Findcpr.cmake b/cmake/Findcpr.cmake new file mode 100644 index 0000000..a8aed9d --- /dev/null +++ b/cmake/Findcpr.cmake @@ -0,0 +1,14 @@ +include(FindPackageHandleStandardArgs) + +find_library(CPR_LIBRARY NAMES cpr) + +find_package_handle_standard_args(cpr REQUIRED_VARS CPR_LIBRARY) + +if (CPR_FOUND) +    mark_as_advanced(CPR_LIBRARY) +endif() + +if(CPR_FOUND AND NOT TARGET cpr::cpr) +    add_library(cpr::cpr IMPORTED UNKNOWN) +    set_property(TARGET cpr::cpr PROPERTY IMPORTED_LOCATION ${CPR_LIBRARY}) +endif()
\ No newline at end of file | 
