这段代码是使用CMake语言定义的两个命令: cmake_dependent_option:该命令用于定义一个依赖选项。它有以下参数: ENABLE_FFMPEG:选项名称,表示是否启用FFmpeg视频支持。 "Build mediastreamer2 with ffmpeg video support.":选项描述,即在CMake生成的配置界面中显示的文本。 NO:默认值,表示默认情况下不启用该选项。 "...
但是,在使用CMake后,手工维护filter是不现实的。CMake也提供了可以生成filter的机制,就是source_group...
This macro presents an option to the user only if a set of other conditions are true. .. command:: cmake_dependent_option .. code-block:: cmake cmake_dependent_option(<option> "<help_text>" <value> <depends> <force>) Makes ``<option>`` available to the user if the ...
DependentOption.cmake FindClangFormat.cmake FindClangTidy.cmake FindWayland.cmake ToLua.cmake UninstallConky.cmake.in build.h.in clang-format.cmake clang-tidy.cmake config.h.in data doc extras lua src tests web .clang-format .clang-tidy .dockerignore .editorconfig .envrc .gitigno...
问为什么我可以在本地使用CMake提供的模块(特别是CMakeDependentOption.cmake),而不能在CI或Docker上...
#· CMake · 34 lines · 21 code · 2 blank · 11 comment ·0 complexity· bab8468047b41713760bce1259a9cae4 MD5 ·raw file #MacrotoprovideanoptiononlyifasetofothervariablesareON. #Exampleinvocation: # #VTK_DEPENDENT_OPTION(USE_FOO"Use Foo"ON"USE_BAR;USE_ZOT"OFF) ...
问未知的CMake命令"CMAKE_DEPENDENT_OPTION“ENCMake作为构建系统可以轻松生成Visual Studio工程,这让我们...
CMakeCompilerABI.h CMakeCompilerIdDetection.cmake CMakeConfigurableFile.in CMakeDependentOption.cmake CMakeDetermineASM-ATTCompiler.cmake CMakeDetermineASMCompiler.cmake CMakeDetermineASM_MASMCompiler.cmake CMakeDetermineASM_NASMCompiler.cmake CMakeDetermineCCompiler.cmake CMakeDetermineCS...
CMakeCompilerABI.h CMakeCompilerIdDetection.cmake CMakeConfigurableFile.in CMakeDependentOption.cmake CMakeDetermineASM-ATTCompiler.cmake CMakeDetermineASMCompiler.cmake CMakeDetermineASM_MASMCompiler.cmake CMakeDetermineASM_NASMCompiler.cmake CMakeDetermineCCompiler.cmake CMakeDetermineC...
Mirror of CMake upstream repository. Contribute to Kitware/CMake development by creating an account on GitHub.