Hi All,<div><br></div><div>I would like to be able to script the cmake compatibility command use_mangle_mesa(<meta http-equiv="content-type" content="text/html; charset=utf-8">mesapath/include/GL some_other_path). </div><div>
<br></div><div>For example: </div><div><br></div><div>%cat scriptfile</div><div>cmake_minimum_required(VERSION 2.8)</div><div>use_mangled_mesa(mesapath/include/GL some_other_path)</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
%cmake -P scriptfile</div><div><br></div><div>Ultimately it would be nice to do</div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>echo 'cmake_minimum_required(VERSION 2.8)\nuse_mangled_mesa(<meta http-equiv="content-type" content="text/html; charset=utf-8">mesapath/include/GL some_other_path)' | cmake -P /dev/stdin</div>
<div>or even</div>echo 'use_mangled_mesa(<meta http-equiv="content-type" content="text/html; charset=utf-8">mesapath/include/GL some_other_path)' | cmake -P /dev/stdin<div><br></div><div>The error from both these methods:</div>
<div> </div><div><div>CMake Error at /dev/stdin:1 (use_mangled_mesa):</div><div> Command use_mangled_mesa() is not scriptable</div></div><div><br></div><div>is there a reason why the function use_mangled_mesa is not scriptable? </div>
<div><br></div><div>My current solution is to create a tmp directory and a CMakeLists.txt with the contents of use_mangled_mesa then execute it using cmake.</div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>
<br></div><div>%cat CMakeLists.txt</div><div>cmake_minimum_required(VERSION 2.8)</div><div>use_mangled_mesa(mesapath/include/GL some_other_path)</div></div><div>%cmake .</div><div><br></div><div>This operation seems overkill for what I would like to do as it generates CMakeFiles, CmakeCache.txt, and other files. Are there other alternatives that do not require running a full cmake on CMakeLists.txt in order to run a simple cmake compatibility command operation?</div>
<div><br></div><div>A simple test that I can do: </div><div>echo 'cmake_minimum_required(VERSION 2.8)\nMESSAGE( "${INPUT_X}" )' | cmake -DINPUT_X=abc -P /dev/stdin</div><div>or </div><div>echo 'MESSAGE( "${INPUT_X}" )' | cmake -DINPUT_X=abc -P /dev/stdin</div>
<div>and I get a correct response from cmake. I would like to replace MESSAGE with use_mangled_mesa.</div><div><br></div><div> </div><div>Thanks,</div><div>Hari</div>