Skip to content
Snippets Groups Projects

Remove PkgConfig dependence on Windows

Merged Ammar Nejati requested to merge removePkgConfigDep_Win into develop
@@ -59,13 +59,13 @@ function(find_pkg_version_win libname conffile paths output_var)
PATHS "${_paths}" PATH_SUFFIXES "${_path_sfx}"
DOC "Package configuration for ${_pkgconffile}")
if(${libname}_PATH)
message(STATUS "${_msghdr} '${_pkgconffile}' found in '${${libname}_PATH}'")
else()
if(NOT ${libname}_PATH)
message(WARNING "${_msghdr} '${_pkgconffile}' not found in paths {${_paths}}")
return()
endif()
message(STATUS "${_msghdr} '${_pkgconffile}' found in '${${libname}_PATH}'")
# extract the configuration information
file(READ "${${libname}_PATH}/${_pkgconffile}" _conf)
string(TOLOWER "${_conf}" _conf_lc)
@@ -78,6 +78,4 @@ function(find_pkg_version_win libname conffile paths output_var)
message(WARNING "${_msghdr} ${_outvar} not found")
endif ()
message(STATUS "${_msghdr} ${_outvar} => ${${_outvar}}")
endfunction()
Loading