There are some definitions set to be used later on the the install() step too: Variable ON if the build runs in local cache, OFF if running in a user folderĭefined when CMake is called using Conan CMake helper Flag for compiler directly (for CMake < 3.1)ĭefined by default to disable the package registry Set to the value when GNU extensions are enabled Set to -m32 or -m64 values based on the architecture and /MP for MSVS Set to -m32 or -m64 values based on the architecture Set when fPIC option exists and True or fPIC exists and False but shared option exists and True Set to valueĭefinition set only if same environment variable is declared by user Set to a suitable value if cross-building to an Android is detected Set to _version value if cross-building is detected Set to value if cross-building is detected I386 if architecture is x86 in an OSX systemĬonan internal variable to check the compiler The CMake helper will automatically append some definitions based on your settings: Variableĭebug, Release… from _type or build_type attribute only if is_multi_configuration cmake_program (Optional, Defaulted to None): Path to the custom cmake executable.msbuild_verbosity (Optional, Defaulted to None): verbosity level for MSBuild (in case of Visual Studio generator).set_cmake_flags (Optional, Defaulted to None): Whether or not to set CMake flags like CMAKE_CXX_FLAGS, CMAKE_C_FLAGS, etc.make_program (Optional, Defaulted to None): Indicate path to make.toolset (Optional, Defaulted to None): Specify a toolset for Visual Studio. ![]() Note this willĪlso make the CMAKE_BUILD_TYPE to be declared for multi configuration generators. build_type (Optional, Defaulted to None): Force the build type instead of taking the value from the settings.parallel (Optional, Defaulted to True): If True, will append the -jN attribute for parallel building being N the cpu_count().Īlso applies to parallel test execution (by defining CTEST_PARALLEL_LEVEL environment variable).cmake_system_name (Optional, Defaulted to True): Specify a custom value for CMAKE_SYSTEM_NAME instead of autodetect it.generator (Optional, Defaulted to None): Specify a custom generator instead of autodetect it.conanfile (Required): Conanfile object.Class CMake ( object ): def _init_ ( self, conanfile, generator = None, cmake_system_name = True, parallel = True, build_type = None, toolset = None, make_program = None, set_cmake_flags = False, msbuild_verbosity = None, cmake_program = None ) Parameters:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |