try define_property

This commit is contained in:
Viktor Szakats 2025-04-05 13:09:37 +02:00
parent 7b8058aef3
commit dba3a23d37
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201
2 changed files with 4 additions and 0 deletions

View file

@ -265,6 +265,8 @@ if(GSS_FOUND)
endif()
if(NOT TARGET CURL::gss)
define_property(TARGET PROPERTY CURL_GSS_FLAVOUR BRIEF_DOCS "GSS flavour: GNU, MIT or Heimdal")
add_library(CURL::gss INTERFACE IMPORTED)
set_target_properties(CURL::gss PROPERTIES
VERSION "${GSS_VERSION}"

View file

@ -45,6 +45,8 @@ if(NOT "$ENV{CURL_BUILDINFO}$ENV{CURL_CI}$ENV{CI}" STREQUAL "")
endforeach()
endif()
define_property(TARGET PROPERTY CURL_PC_MODULES BRIEF_DOCS "pkg-config modules")
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
include(Utilities)
include(Macros)