See also the CMAKE_COMPILER_VERSION variable. $ġ if the CMake’s compiler id of the CXX compiler matches any oneġ if the CMake’s compiler id of the CUDA compiler matches any oneġ if the CMake’s compiler id of the Objective-C compiler matches any oneġ if the CMake’s compiler id of the Objective-C++ compiler matches any oneġ if the CMake’s compiler id of the Fortran compiler matches any oneġ if the version of the C compiler matches version, otherwise 0. Of the entries in compiler_ids, otherwise 0. Where compiler_ids is a comma-separated list.ġ if the CMake’s compiler id of the C compiler matches any one Where platform_ids is a comma-separated list.ġ if the CMake’s platform id matches any one of the entries in This expression when it is evaluated on a property on an IMPORTED The mapping in MAP_IMPORTED_CONFIG_ is also considered by Generator expressions can be nested, as shown in most of the examples below.ġ if config is cfg, else 0. around placeholders like condition, string, target, To avoid confusion, this pageĭeviates from most of the CMake documentation in that it omits angular brackets The build configuration, target properties, platform information or any other They enable conditional linking, conditional definitions used when compiling,Ĭonditional include directories, and more. Target_include_directories(), target_compile_definitions() They may also be used when usingĬommands to populate those properties, such as target_link_libraries(), Such as LINK_LIBRARIES, INCLUDE_DIRECTORIES,ĬOMPILE_DEFINITIONS and others. Generator expressions are allowed in the context of many target properties, Information specific to each build configuration. Generator expressions are evaluated during build system generation to produce
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |