3/11/2023 0 Comments Cmake find library![]() This property is automatically set for the platforms that are known to need it if at least one of the languages supported by the project() command is enabled. so I changed it to: FINDLIBRARY (CURLLIBRARY NAMES curl libcurl) which also failed. I was assuming that it wasnt looking for libcurl. If the FIND_LIBRARY_USE_LIB64_PATHS global property is set all search paths will be tested as normal, with 64/ appended, and with all matches of lib/ replaced with lib64/. The original code was: FINDLIBRARY (CURLLIBRARY NAMES curl) which failed. If the FIND_LIBRARY_USE_LIBX32_PATHS global property is set all search paths will be tested as normal, with x32/ appended, and with all matches of lib/ replaced with libx32/. If the FIND_LIBRARY_USE_LIB32_PATHS global property is set all search paths will be tested as normal, with 32/ appended, and with all matches of lib/ replaced with lib32/. This variable overrides the FIND_LIBRARY_USE_LIB32_PATHS, FIND_LIBRARY_USE_LIBX32_PATHS, and FIND_LIBRARY_USE_LIB64_PATHS global properties. In other words, the search order would be _ROOT, ENV/. The package root variables are maintained as a stack, so if called from nested find modules or config packages, root paths from the parent's find module or config package will be searched after paths from the current module or package. Specifically, look in the _ROOT CMake variable and the _ROOT environment variable. ![]() New in version 3.12: If called from within a find module or any other script loaded by a call to find_package(), search prefixes unique to the current package being found. Specify the documentation string for the cache entry. ![]() Specify additional subdirectories to check below each directory location otherwise considered. The ENV var sub-option reads paths from a system environment variable. Specify directories to search in addition to the default locations. When using this to specify names with and without a version suffix, we recommend specifying the unversioned name first so that locally-built packages can be found before those provided by distributions. Specify one or more possible names for the library. ![]() If nothing is found, the result will be -NOTFOUND. In this section we will show how the BUILDSHAREDLIBS variable can be used to control the default behavior of addlibrary(), and allow control over how libraries without an explicit type (STATIC, SHARED, MODULE or OBJECT) are built. If the library is found the result is stored in the variable and the search will not be repeated unless the variable is cleared. Step 10: Selecting Static or Shared Libraries. A cache entry, or a normal variable if NO_CACHE is specified, named by is created to store the result of this command. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |