[CMake] load_command not scriptable

David Cole DLRdave at aol.com
Wed Feb 25 07:21:42 EST 2015


You could patch the executable to make cmLoadCommandCommand return
true from IsScriptable... but if you're going to the trouble of
patching CMake anyhow, why not simply build your loadable command
directly into CMake...?

The other thing might be to mention specifically what the performance
problem is on the mailing list here to see if anybody has any ideas
how we could make things faster..... And totally preclude your need to
load an additional command in the first place.

Or profile it and submit a patch to improve the performance in this situation.


HTH,
David C.



On Wed, Feb 25, 2015 at 5:46 AM, Tobias Becker <becker.tobi at gmail.com> wrote:
> Hi
>
> I've been working on an open source project which provides alot of extra
> cmake (in pure cmake) https://github.com/toeb/cmakepp.  I am however hitting
> a performance bottleneck and want to get around that by using load_command
> (I know it is discouraged) however I have the problem that it is not
> scriptable and all of my functions need to be available in script mode.
>
> Is there a way to load compiled commands into cmake after it was compiled?
> (I have even thinking about patching the executable to make
> cmLoadCommandCommand return true in its IsScriptable method)
>
> But there should be a simple way?
>
>
> Cheers,
>
> Tobias
>
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/cmake


More information about the CMake mailing list