![]() ![]() Set to the value (or for backward compatibility)ĭefinition set only if same environment variable is declared by user Set to ON or OFF value when GNU extensions for the given C++ standard are enabled Set to .version value if cross-building is detected Set to value if cross-building is detectedĭefined if CONAN_CMAKE_SYSROOT is defined as environment variable Set to conanfile.install_folder when using cmake_find_package_multi I386 if architecture is x86 in an OSX system Set to conanfile.install_folder when using cmake_find_package or cmake_find_package_multi Set to a suitable value if cross-building to an Android is detectedĭebug, Release… from _type or build_type attribute only if is_multi_configurationĭefined by default to disable the package registry The CMake helper will automatically append some definitions based on your settings: Variableĭefined when one of ANDROID_NDK_ROOT or ANDROID_NDK_HOME environment variables presented With append_vcvars=True, the vcvars will append to the end of the environment (for “list” environment variables, like PATH), instead of pre-pending, so the existing environment takes precedence. By default the vcvars is pre-pended to the environment, taking precedence. CMake helper sometimes, like when using the Ninja generator, needs to call vcvars to set the VS environment. append_vcvars (Optional, Defaulted to False): When a Visual Studio environment is activated by the build helper, append it to respect existing environment.generator_platform (Optional, Defaulted to None): Generator platform name or none to autodetect (-A cmake option).cmake_program (Optional, Defaulted to None): Path to the custom cmake executable. ![]() MSBuild (in case of Visual Studio generator). ![]() msbuild_verbosity (Optional, Defaulted to minimal): verbosity level for.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.Visual Studio or XCode as it will not have effect. Note that CMAKE_BUILD_TYPE will not be declared when using CMake multi-configuration generators such as 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 = 'minimal', cmake_program = None, generator_platform = None, append_vcvars = False ) Parameters: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |