cmake: move kim-api detection to cmake config
This commit is contained in:
@ -20,8 +20,8 @@ if(NOT @BUILD_SHARED_LIBS@)
|
||||
find_dependency(ZLIB REQUIRED)
|
||||
endif()
|
||||
if(@PKG_KIM@)
|
||||
find_dependency(PkgConfig REQUIRED)
|
||||
pkg_check_modules(KIM-API REQUIRED IMPORTED_TARGET libkim-api>=@KIM-API_MIN_VERSION@)
|
||||
find_package(KIM-API @KIM-API_MIN_VERSION@ CONFIG REQUIRED)
|
||||
add_kim_api_imported_library()
|
||||
if(@CURL_FOUND@)
|
||||
find_dependency(CURL REQUIRED)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user