What is the preferred way to just touch the variable inside CMakeLists.txt ?
CMakeLists.txt
I have a bunch of similar external objects that are called in a loop with the same variables. Some of the projects do not need specific variables.
You can simply disable this warning together by passing --no-warn-unused-cli to CMake. See: https://cmake.org/cmake/help/v3.5/manual/cmake.1.html
--no-warn-unused-cli
Touching a variable is clearly not required according to one of the authors of CMake: https://cmake.org/pipermail/cmake/2011-February/042908.html
However, for variables passed in -DFOO=bar -DBAR=3 -DBAZ=true , you can add a line
-DFOO=bar -DBAR=3 -DBAZ=true
set(ignoreMe "${FOO}${BAZ}${BAR}")
to one of your CMakeLists.txt , which should be sufficient to suppress the warning.
Source: https://habr.com/ru/post/1246552/More articles:Speed โโof execution of conditional instructions in comparison with mathematical functions - c ++Base is prohibited. Need a user - android'{"errors": {"base": ["Forbidden. Need user." ]}} '- androidMaven: Insoluble parent POM and "parent.relativePath" point to an invalid local POM - mavenResolving function template overload with pointer argument - c ++files from different maven modules with the same name cannot coexist in a jar file created using maven assembly-plugin - javaArithmetic operations on literals in C # evaluated at compile time? - performanceNixOS: setting the default channel in the configuration.nix file - nixhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1246556/max-flow-in-bipartite-graph-using-ford-fulkerson-to-determine-values-to-suffice-to-sum&usg=ALkJrhh4KNxVseUW4G26NhQ-DFAebr0aHAWhy Excel doesn't work according to IEEE 754 8-byte - floating-pointAll Articles