mirror of
https://github.com/polybar/polybar.git
synced 2024-10-27 05:23:39 -04:00
43d754bd1d
Older versions of cmake (e.g. in Ubuntu 18.04) did not provide cmake modules for these libraries that also created a target. Fixes #2393
14 lines
436 B
CMake
14 lines
436 B
CMake
# This module defines an imported target `CURL::libcurl` if libcurl is found
|
|
#
|
|
# Defines the following Variables (see find_package_impl for more info):
|
|
# CURL_FOUND
|
|
# CURL_INCLUDE_DIR
|
|
# CURL_INCLUDE_DIRS
|
|
# CURL_LIBRARY
|
|
# CURL_LIBRARIES
|
|
# CURL_VERSION
|
|
find_package_impl("libcurl" "CURL" "curl/curl.h")
|
|
|
|
if(CURL_FOUND AND NOT TARGET CURL::libcurl)
|
|
create_imported_target("CURL::libcurl" "${CURL_INCLUDE_DIR}" "${CURL_LIBRARY}")
|
|
endif()
|