6/4/2023 0 Comments Cmake message![]() ![]() The arguments CMake passes to the dependency provider depend on the type of This ensures it does not introduce a new variable scope. The provider command should typically be implemented as a macro rather than aįunction. Outside of that context will result in an error.īecause some methods expect certain variables to be set in the calling scope, Calling cmake_language(SET_DEPENDENCY_PROVIDER) Thus, dependency providers can only be set as part of the first call to Specified by the CMAKE_PROJECT_TOP_LEVEL_INCLUDES variable. The dependency provider can only be set while processing one of the files will discard any previously set provider. The specified mustĪlready exist when cmake_language(SET_DEPENDENCY_PROVIDER) is called.Īs a special case, providing an empty string for the and no Provider replaces the previously set one. Set when cmake_language(SET_DEPENDENCY_PROVIDER) is called, the new Only one provider can be set at any point in time. One at a time, not the whole list in one go. It expects each dependency to be fed to the provider command The provider command accepts FetchContent_MakeAvailable() The provider command accepts find_package() requests. One or more of the following values can be specified for the ![]() Or if the provider doesn't support the request's method, or no providerįetchContent_MakeAvailable() implementation is used to fulfill If the provider does not fulfill the request, Was set, CMake calls the provider's with a set of If the request is for one of the specified when the provider )įetchContent_MakeAvailable(), the call may be forwarded to aĭependency provider which then has the opportunity to fulfill the request. The currently scheduled list of deferred calls may be retrieved:Ĭmake_language( SET_DEPENDENCY_PROVIDER SUPPORTED_METHODS. Will be generated and the generated id will start with an underscore ( _). Specify a variable in which to store the identification for theĭeferred call. The may begin with an underscore ( _) only if it was generatedĪutomatically by an earlier call that used ID_VAR to get the id. The may not be empty and may not begin with a capital letter A-Z. Specify an identification for the deferred call. It can be the current directory or one of its ancestors. The given directory must not yet be finished processing. The given directory must be known to CMake, being either the top-levelĭirectory or one added by add_subdirectory(). Treated as relative to the current source directory. The may reference either a sourceĭirectory or its corresponding binary directory. ![]() Schedule the call for the end of the given directory instead of theĬurrent directory. References in arguments are evaluated at the time the deferred call is Written at the end of the current directory's CMakeLists.txt file,Įxcept that they run even after a return() call. By default, deferred calls are executed as if Schedules a call to the named with the given arguments (if any) ![]()
0 Comments
Leave a Reply. |